Skip to content

Commit 5284e02

Browse files
Manjusha.SManjusha.S
authored andcommitted
fix psr issues
1 parent 11d1f04 commit 5284e02

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/Magento/FunctionalTestingFramework/StaticCheck/ActionGroupArgumentsCheck.php

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use DOMElement;
1717
use Magento\FunctionalTestingFramework\Exceptions\TestFrameworkException;
1818

19-
2019
/**
2120
* Class ActionGroupArgumentsCheck
2221
* @package Magento\FunctionalTestingFramework\StaticCheck
@@ -105,12 +104,21 @@ private function findErrorsInFileSet($files)
105104
$contents = $filePath->getContents();
106105
preg_match_all(self::STEP_KEY_REGEX_PATTERN, $contents, $actionGroupReferences);
107106
foreach ($actionGroupReferences[0] as $actionGroupReferencesData) {
108-
$actionGroupReferencesDataArray[] = trim(str_replace(['stepKey','='],[""],$actionGroupReferencesData)).'"';
107+
$actionGroupReferencesDataArray[] = trim(
108+
str_replace(['stepKey', '='], [""], $actionGroupReferencesData)
109+
).'"';
109110
}
110-
$duplicateStepKeys = array_unique( array_diff_assoc( $actionGroupReferencesDataArray, array_unique( $actionGroupReferencesDataArray ) ) );
111-
unset( $actionGroupReferencesDataArray);
111+
$duplicateStepKeys = array_unique(
112+
array_diff_assoc(
113+
$actionGroupReferencesDataArray,
114+
array_unique(
115+
$actionGroupReferencesDataArray
116+
)
117+
)
118+
);
119+
unset($actionGroupReferencesDataArray);
112120
if (isset($duplicateStepKeys) && count($duplicateStepKeys) > 0) {
113-
throw new TestFrameworkException('Action group has duplicate step keys');
121+
throw new TestFrameworkException('Action group has duplicate step keys');
114122
}
115123
/** @var DOMElement $actionGroup */
116124
$actionGroup = $this->getActionGroupDomElement($contents);

0 commit comments

Comments
 (0)