From e87a3f93cbc9e8f78ea500947ee976cee62c18f0 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 11 Apr 2025 14:41:51 +0200 Subject: [PATCH] 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. --- src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php b/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php index 151cb7d5c1..6f6286fb57 100644 --- a/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php +++ b/src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php @@ -161,7 +161,7 @@ public function process(File $phpcsFile, $stackPtr) if ($this->debug === true) { $line = $tokens[$stackPtr]['line']; - echo "Start with token $stackPtr on line $line with indent $currentIndent".PHP_EOL; + echo PHP_EOL."Start with token $stackPtr on line $line with indent $currentIndent".PHP_EOL; } if (empty($this->ignoreIndentation) === true) {