vendor/squizlabs/php_codesniffer/CodeSniffer/Tokenizers/Comment.php 1 location
|
@@ 148-152 (lines=5) @@
|
| 145 |
|
$lineTokens = $this->_processLine($string, $eolChar, $char, $numChars); |
| 146 |
|
foreach ($lineTokens as $lineToken) { |
| 147 |
|
$tokens[$stackPtr] = $lineToken; |
| 148 |
|
if (PHP_CODESNIFFER_VERBOSITY > 1) { |
| 149 |
|
$content = PHP_CodeSniffer::prepareForOutput($lineToken['content']); |
| 150 |
|
$type = $lineToken['type']; |
| 151 |
|
echo "\t\tCreate comment token: $type => $content".PHP_EOL; |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
if ($lineToken['code'] === T_DOC_COMMENT_TAG) { |
| 155 |
|
$tokens[$openPtr]['comment_tags'][] = $stackPtr; |
vendor/squizlabs/php_codesniffer/CodeSniffer/Tokenizers/CSS.php 1 location
|
@@ 424-427 (lines=4) @@
|
| 421 |
|
} |
| 422 |
|
|
| 423 |
|
$newContent .= $finalTokens[$i]['content']; |
| 424 |
|
if (PHP_CODESNIFFER_VERBOSITY > 1) { |
| 425 |
|
$content = PHP_CodeSniffer::prepareForOutput($finalTokens[$i]['content']); |
| 426 |
|
echo "\t\t=> token $i added to URL string and ignored: $content".PHP_EOL; |
| 427 |
|
} |
| 428 |
|
|
| 429 |
|
unset($finalTokens[$i]); |
| 430 |
|
} |
vendor/squizlabs/php_codesniffer/CodeSniffer/Tokenizers/JS.php 1 location
|
@@ 621-625 (lines=5) @@
|
| 618 |
|
if (isset($chars[($i - 2)]) === true && $chars[($i - 2)] === '\\') { |
| 619 |
|
$lastToken = array_pop($tokens); |
| 620 |
|
$lastContent = $lastToken['content']; |
| 621 |
|
if (PHP_CODESNIFFER_VERBOSITY > 1) { |
| 622 |
|
$value = $this->tokenValues[strtolower($lastContent)]; |
| 623 |
|
$content = PHP_CodeSniffer::prepareForOutput($lastContent); |
| 624 |
|
echo "\t=> Removed token $value ($content)".PHP_EOL; |
| 625 |
|
} |
| 626 |
|
|
| 627 |
|
$lastChars = str_split($lastContent); |
| 628 |
|
$lastNumChars = count($lastChars); |