File tree 1 file changed +5
-1
lines changed
Magento2/Sniffs/Annotation
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -668,10 +668,14 @@ private function checkIfNamespaceContainsApi(File $phpcsFile) : bool
668
668
return false ;
669
669
}
670
670
$ tokens = $ phpcsFile ->getTokens ();
671
- for (
671
+ // phpcs:ignore Squiz.ControlStructures.ForLoopDeclaration.SpacingAfterOpen
672
+ for ( // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed
673
+ // phpcs:ignore Squiz.ControlStructures.ForLoopDeclaration.SpacingAfterFirst
672
674
$ index = $ namespaceStackPtr ;
675
+ // phpcs:ignore Squiz.ControlStructures.ForLoopDeclaration.SpacingAfterSecond
673
676
array_key_exists ($ index , $ tokens ) && 'T_SEMICOLON ' !== $ tokens [$ index ]['type ' ];
674
677
$ index ++
678
+ // phpcs:ignore Squiz.ControlStructures.ForLoopDeclaration.SpacingBeforeClose
675
679
) {
676
680
if ('T_STRING ' === $ tokens [$ index ]['type ' ] && 'Api ' === $ tokens [$ index ]['content ' ]) {
677
681
return true ;
You can’t perform that action at this time.
0 commit comments