Skip to content

Commit 02c94c2

Browse files
gsdevmeChrisDBrown
authored andcommitted
fix: align rule to best practice for symfony
1 parent 98f9b77 commit 02c94c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Markup/Sniffs/Symfony/ControllerPublicMethodNamesSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ public function process(\PHP_CodeSniffer\Files\File $phpcsFile, $openTagPointer)
5353
return;
5454
}
5555

56-
if (substr($name, -6) !== 'Action') {
56+
if (substr($name, -6) === 'Action') {
5757
$phpcsFile->addError(
5858
sprintf(
59-
'Controller public function name(%s) must end in *Action ', $name
59+
'Controller public function name(%s) must not end in *Action ', $name
6060
),
6161
$openTagPointer,
6262
'SymfonyControllerPublicMethodName'

0 commit comments

Comments
 (0)