Skip to content

Commit 61b85f4

Browse files
authored
Merge pull request #27 from fsw/master
Fix misleading issue message
2 parents cab2261 + 134583f commit 61b85f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Inpsyde/Sniffs/CodeQuality/FunctionBodyStartSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private function checkBodyStart(
9595
$startWithComment = in_array($tokens[$bodyStart]['code'], Tokens::$emptyTokens, true);
9696

9797
if (!$startWithComment && ($isMultiLineDeclare || $isSingleLineSignature)) {
98-
$where = $isSingleLineSignature === 'SingleLineSignature'
98+
$where = $isSingleLineSignature
9999
? 'with single-line signature and open curly bracket on same line'
100100
: 'where arguments declaration spans across multiple lines';
101101
$code = $isSingleLineSignature

0 commit comments

Comments
 (0)