Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 4 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /