Skip to content

Commit 457f773

Browse files
committed
Fix 2 x phpcs
1 parent a7018b1 commit 457f773

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ public function process(File $phpcsFile, $stackPtr)
9999
// If there is a phpstan-ignore inline comment disregard it and continue searching backwards
100100
// to find the function comment.
101101
if ($tokens[$commentEnd]['code'] === T_COMMENT
102-
&& preg_match('/\@xphpstan-ignore/', $tokens[$commentEnd]['content'])
102+
&& preg_match('/\@xphpstan-ignore/', $tokens[$commentEnd]['content']) === true
103103
) {
104104
$phpstanCommentLines += 1;
105105
continue;
106106
}
107107

108108
break;
109-
}
109+
}//end for
110110

111111
// Constructor methods are exempt from requiring a docblock.
112112
// @see https://www.drupal.org/project/coder/issues/3400560.

0 commit comments

Comments
 (0)