@@ 324-337 (lines=14) @@ | ||
321 | if ($inString === '' && $inComment === '' && $buffer !== '') { |
|
322 | // If the buffer only has whitespace and we are about to |
|
323 | // add a character, store the whitespace first. |
|
324 | if (trim($char) !== '' && trim($buffer) === '') { |
|
325 | $tokens[] = array( |
|
326 | 'code' => T_WHITESPACE, |
|
327 | 'type' => 'T_WHITESPACE', |
|
328 | 'content' => str_replace("\n", $this->eolChar, $buffer), |
|
329 | ); |
|
330 | ||
331 | if (PHP_CodeSniffer_VERBOSITY > 1) { |
|
332 | $content = Util\Common::prepareForOutput($buffer); |
|
333 | echo "\t=> Added token T_WHITESPACE ($content)".PHP_EOL; |
|
334 | } |
|
335 | ||
336 | $buffer = ''; |
|
337 | } |
|
338 | ||
339 | // If the buffer is not whitespace and we are about to |
|
340 | // add a whitespace character, store the content first. |
|
@@ 670-683 (lines=14) @@ | ||
667 | } |
|
668 | } |
|
669 | ||
670 | if ($inComment === '' && $cleanBuffer === false) { |
|
671 | $tokens[] = array( |
|
672 | 'code' => T_STRING, |
|
673 | 'type' => 'T_STRING', |
|
674 | 'content' => str_replace("\n", $this->eolChar, $buffer), |
|
675 | ); |
|
676 | ||
677 | if (PHP_CodeSniffer_VERBOSITY > 1) { |
|
678 | $content = Util\Common::prepareForOutput($buffer); |
|
679 | echo "\t=> Added token T_STRING ($content)".PHP_EOL; |
|
680 | } |
|
681 | ||
682 | $buffer = ''; |
|
683 | } |
|
684 | }//end if |
|
685 | ||
686 | if ($cleanBuffer === true) { |