File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Magento2/Sniffs/Annotation Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments