Skip to content

Commit 55c6faf

Browse files
committed
Generic/CamelCapsFunctionName: update code comment
The original inline comment was inaccurate as code removes all leading underscores and not just the first.
1 parent 0066452 commit 55c6faf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScop
149149
return;
150150
}
151151

152-
// Ignore first underscore in methods prefixed with "_".
152+
// Ignore leading underscores in the method name.
153153
$methodName = ltrim($methodName, '_');
154154

155155
$methodProps = $phpcsFile->getMethodProperties($stackPtr);

0 commit comments

Comments
 (0)