Skip to content

Commit 0d935b0

Browse files
committed
Generic/ScopeIndent: start debug info on new line
Depending on whether verbose output is requested or not, the debug output from the `ScopeIndent` sniff _may_ or _may not_ start on a new line. When it doesn't, it makes the output harder to read. Fixed now.
1 parent 9419fa3 commit 0d935b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ public function process(File $phpcsFile, $stackPtr)
152152

153153
if ($this->debug === true) {
154154
$line = $tokens[$stackPtr]['line'];
155+
Common::printStatusMessage(PHP_EOL, 0, true);
155156
Common::printStatusMessage("Start with token $stackPtr on line $line with indent $currentIndent");
156157
}
157158

0 commit comments

Comments
 (0)