Skip to content

Commit 59b5d46

Browse files
Adding phpcs:ignore for for loop in MethodArgumentsSniff
1 parent 38f565c commit 59b5d46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Magento2/Sniffs/Annotation/MethodArgumentsSniff.php

+4
Original file line numberDiff line numberDiff line change
@@ -668,10 +668,14 @@ private function checkIfNamespaceContainsApi(File $phpcsFile) : bool
668668
return false;
669669
}
670670
$tokens = $phpcsFile->getTokens();
671+
// phpcs:ignore Squiz.ControlStructures.ForLoopDeclaration.SpacingAfterOpen,Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed
671672
for (
673+
// phpcs:ignore Squiz.ControlStructures.ForLoopDeclaration.SpacingAfterFirst
672674
$index = $namespaceStackPtr;
675+
// phpcs:ignore Squiz.ControlStructures.ForLoopDeclaration.SpacingAfterSecond
673676
array_key_exists($index, $tokens) && 'T_SEMICOLON' !== $tokens[$index]['type'];
674677
$index++
678+
// phpcs:ignore Squiz.ControlStructures.ForLoopDeclaration.SpacingBeforeClose
675679
) {
676680
if ('T_STRING' === $tokens[$index]['type'] && 'Api' === $tokens[$index]['content']) {
677681
return true;

0 commit comments

Comments
 (0)