Skip to content

Commit f755476

Browse files
committed
MQE-1959: Static-checks command can be configured
1 parent 43efeae commit f755476

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Magento/FunctionalTestingFramework/Console/StaticChecksCommand.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,11 @@ private function validateInputArguments(InputInterface $input)
113113
if (empty($requiredChecksNames)) {
114114
$this->staticCheckObjects = $this->allStaticCheckObjects;
115115
} else {
116-
foreach ($requiredChecksNames as $checksName) {
117-
if (in_array($checksName, $this->allStaticCheckObjects)) {
118-
$this->staticCheckObjects[$checksName] = $this->allStaticCheckObjects[$checksName];
119-
unset($requiredChecksNames[$checksName]);
116+
for ($index = 0; $index < count($requiredChecksNames); $index++) {
117+
if (in_array($requiredChecksNames[$index], array_keys($this->allStaticCheckObjects))) {
118+
$this->staticCheckObjects[$requiredChecksNames[$index]] =
119+
$this->allStaticCheckObjects[$requiredChecksNames[$index]];
120+
unset($requiredChecksNames[$index]);
120121
}
121122
}
122123
}

0 commit comments

Comments
 (0)