Skip to content

Commit 90ec67a

Browse files
[ACQE-4318] Fixing indentation errors
1 parent 0b2cea4 commit 90ec67a

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

src/Magento/FunctionalTestingFramework/Suite/SuiteGenerator.php

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -199,17 +199,17 @@ private function getSuitesDetails($testManifest): array
199199

200200
// Add subsuites array[2nd dimension] to main array[1st dimension] to access it directly later
201201
if (!empty($suites)) {
202-
foreach ($suites as $subSuites) {
203-
if (!empty($subSuites)) {
204-
foreach ($subSuites as $subSuiteName => $suiteTestNames) {
205-
if (!is_numeric($subSuiteName)) {
206-
$suites[$subSuiteName] = $suiteTestNames;
207-
} else {
208-
continue;
202+
foreach ($suites as $subSuites) {
203+
if (!empty($subSuites)) {
204+
foreach ($subSuites as $subSuiteName => $suiteTestNames) {
205+
if (!is_numeric($subSuiteName)) {
206+
$suites[$subSuiteName] = $suiteTestNames;
207+
} else {
208+
continue;
209+
}
210+
}
209211
}
210-
}
211212
}
212-
}
213213
}
214214
return $suites;
215215
}
@@ -224,23 +224,24 @@ private function readAllGroupFiles($path): array
224224
{
225225
// Read all group files
226226
if (is_dir($path)) {
227-
$groupFiles = glob("$path/group*.txt");
228-
if ($groupFiles === false) {
229-
throw new RuntimeException("glob(): error with '$path'");
230-
}
231-
sort($groupFiles, SORT_NATURAL);
227+
$groupFiles = glob("$path/group*.txt");
228+
if ($groupFiles === false) {
229+
throw new RuntimeException("glob(): error with '$path'");
230+
}
231+
sort($groupFiles, SORT_NATURAL);
232232
}
233233

234234
// Read each file in the reverse order and form an array with groupId as key
235235
$groupNumber = 0;
236236
$allGroupsContent = [];
237237
while (!empty($groupFiles)) {
238-
$group = array_pop($groupFiles);
239-
$allGroupsContent[$groupNumber] = file($group);
240-
$groupNumber++;
238+
$group = array_pop($groupFiles);
239+
$allGroupsContent[$groupNumber] = file($group);
240+
$groupNumber++;
241241
}
242242
return $allGroupsContent;
243243
}
244+
244245
/**
245246
* Function which takes a suite name and a set of test names. The function then generates all relevant supporting
246247
* files and classes for the suite. The function takes an optional argument for suites which are split by a parallel

0 commit comments

Comments
 (0)