Skip to content

Commit 98f51a2

Browse files
committed
PHPCS 4.x: fix inconsistent output
Commit d4f33db changed the output from STDOUT to STDERR using `Common::printStatusMessage()` instead of plain `echo`'s. In the mean time, some new `echo`'s have slipped in. This fixes those up.
1 parent 4374834 commit 98f51a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tokenizers/PHP.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ protected function tokenize($string)
10961096
$tokens[$stackPtr][0] = T_FN;
10971097
$token[0] = T_FN;
10981098
if (PHP_CODESNIFFER_VERBOSITY > 1) {
1099-
echo "\t\t* token $stackPtr changed from T_STRING to T_FN".PHP_EOL;
1099+
Common::printStatusMessage('* token $stackPtr changed from T_STRING to T_FN', 2);
11001100
}
11011101
}
11021102

@@ -1125,7 +1125,7 @@ protected function tokenize($string)
11251125
if ($x < $numTokens && is_array($tokens[$x]) === true) {
11261126
if (PHP_CODESNIFFER_VERBOSITY > 1) {
11271127
$oldType = Tokens::tokenName($tokens[$x][0]);
1128-
echo "\t\t* token $x changed from $oldType to T_STRING".PHP_EOL;
1128+
Common::printStatusMessage('* token $x changed from $oldType to T_STRING', 2);
11291129
}
11301130

11311131
$tokens[$x][0] = T_STRING;

0 commit comments

Comments
 (0)