Skip to content

Commit e87a3f9

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 50f03b3 commit e87a3f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function process(File $phpcsFile, $stackPtr)
161161

162162
if ($this->debug === true) {
163163
$line = $tokens[$stackPtr]['line'];
164-
echo "Start with token $stackPtr on line $line with indent $currentIndent".PHP_EOL;
164+
echo PHP_EOL."Start with token $stackPtr on line $line with indent $currentIndent".PHP_EOL;
165165
}
166166

167167
if (empty($this->ignoreIndentation) === true) {

0 commit comments

Comments
 (0)