@@ -259,10 +259,7 @@ public function throwExceptionIfDuplicateArgumentsFound(string $fileContents, Te
259
259
{
260
260
$ parsedSteps = $ testObject ->getUnresolvedSteps ();
261
261
foreach ($ parsedSteps as $ parsedStep ) {
262
- if (
263
- $ parsedStep ->getType () !== 'actionGroup ' &&
264
- $ parsedStep ->getType () !== 'helper '
265
- ) {
262
+ if ($ parsedStep ->getType () !== 'actionGroup ' && $ parsedStep ->getType () !== 'helper ' ) {
266
263
continue ;
267
264
}
268
265
$ attributesActions = $ parsedStep ->getCustomActionAttributes ();
@@ -277,18 +274,15 @@ public function throwExceptionIfDuplicateArgumentsFound(string $fileContents, Te
277
274
$ argumentArray = [];
278
275
foreach ($ fileToArr as $ fileVal ) {
279
276
$ fileVal = trim ($ fileVal );
280
- if (
281
- (str_contains ($ fileVal , '<actionGroup ' ) || str_contains ($ fileVal , '<helper ' )) &&
282
- str_contains ($ fileVal , $ stepKey )
283
- ) {
277
+ if ((str_contains ($ fileVal , '<actionGroup ' ) || str_contains ($ fileVal , '<helper ' )) && str_contains ($ fileVal , $ stepKey )) {
284
278
$ actionGroupStart = true ;
285
279
continue ;
286
280
}
287
281
if (str_contains ($ fileVal , '</actionGroup ' ) || str_contains ($ fileVal , '</helper ' )) {
288
282
foreach ($ arguments as $ argumentName => $ argumentValue ) {
289
283
$ argumentCounter = 0 ;
290
284
foreach ($ argumentArray as $ rawArgument ) {
291
- if (str_contains ($ rawArgument , '<argument ' ) && str_contains ($ rawArgument , $ argumentName )){
285
+ if (str_contains ($ rawArgument , '<argument ' ) && str_contains ($ rawArgument , $ argumentName )) {
292
286
$ argumentCounter ++;
293
287
}
294
288
if ($ argumentCounter > 1 ) {
0 commit comments