Skip to content

Commit f401b15

Browse files
authored
ACQE-2580 | Fix static checks
1 parent f34117c commit f401b15

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ public function throwExceptionIfDuplicateArgumentsFound(string $fileContents, st
262262
$actionGroupStart = false;
263263
foreach ($fileToArr as $fileVal) {
264264
$fileVal = trim($fileVal);
265-
if (
266-
(str_starts_with($fileVal, '<actionGroup') || str_starts_with($fileVal, '<helper')) &&
265+
if ((str_starts_with($fileVal, '<actionGroup') || str_starts_with($fileVal, '<helper')) &&
267266
!str_ends_with($fileVal, '/>')
268267
) {
269268
$actionGroupStart = true;
@@ -278,8 +277,8 @@ public function throwExceptionIfDuplicateArgumentsFound(string $fileContents, st
278277
$argumentName = substr($argument, $subtringStart, $size);
279278
if (in_array($argumentName, $argumentNameArray)) {
280279
$err[] = sprintf(
281-
'Duplicate argument for actiongroup or helper with name: %s in test file: %s',
282-
$argumentName,
280+
'Duplicate argument for actiongroup or helper with name: %s in test file: %s',
281+
$argumentName,
283282
$fileName
284283
);
285284
throw new TestFrameworkException(implode(PHP_EOL, $err));

0 commit comments

Comments
 (0)