@@ -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