Skip to content

Commit 5fb0769

Browse files
committed
Generic/CamelCapsFunctionName: remove unnecessary return
`return;` is unnecessary as the last statement in a method.
1 parent 55c6faf commit 5fb0769

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Standards/Generic/Sniffs/NamingConventions/CamelCapsFunctionNameSniff.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScop
167167
}
168168

169169
$phpcsFile->recordMetric($stackPtr, 'CamelCase method name', 'no');
170-
return;
171170
} else {
172171
$phpcsFile->recordMetric($stackPtr, 'CamelCase method name', 'yes');
173172
}

0 commit comments

Comments
 (0)