Skip to content

Commit 8eeee07

Browse files
committed
Merge branch 'report-memory-improvements' into phpcs-fixer
2 parents 9f662e6 + 31c306d commit 8eeee07

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/FunctionOpeningBraceSpaceSniff.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,8 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
100100

101101
if ($nestedFunction === true) {
102102
if ($lineDifference > 0) {
103-
$error = 'Expected 0 blank lines before opening brace of nested function; %s found';
104-
$data = array($found);
105-
$phpcsFile->addError($error, $openBrace, 'SpacingAfterNested', $data);
103+
$error = 'Opening brace should be on the same line as the function keyword';
104+
$phpcsFile->addError($error, $openBrace, 'SpacingAfterNested');
106105
}
107106
} else {
108107
if ($lineDifference === 0) {

0 commit comments

Comments
 (0)