Skip to content

Commit 4431da9

Browse files
author
Vincent Langlet
committed
💄 Lint
1 parent 5321431 commit 4431da9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Symfony3Custom/Sniffs/Formatting/BlankLineBeforeReturnSniff.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ public function process(File $phpcsFile, $stackPtr)
5757
|| 'T_COLON' === $prevLineTokens[0])
5858
) {
5959
return;
60-
} elseif (count($prevLineTokens) > 0) {
60+
}
61+
62+
if (count($prevLineTokens) > 0) {
6163
$fix = $phpcsFile->addFixableError(
6264
'Missing blank line before return statement',
6365
$stackPtr,

0 commit comments

Comments
 (0)