| @@ 1121-1126 (lines=6) @@ | ||
| 1118 | $closer = $this->tokens[$i]['bracket_closer']; |
|
| 1119 | $this->tokens[$closer]['code'] = T_CLOSE_SHORT_ARRAY; |
|
| 1120 | $this->tokens[$closer]['type'] = 'T_CLOSE_SHORT_ARRAY'; |
|
| 1121 | if (PHP_CodeSniffer_VERBOSITY > 1) { |
|
| 1122 | $line = $this->tokens[$i]['line']; |
|
| 1123 | echo "\t* token $i on line $line changed from T_OPEN_SQUARE_BRACKET to T_OPEN_SHORT_ARRAY".PHP_EOL; |
|
| 1124 | $line = $this->tokens[$closer]['line']; |
|
| 1125 | echo "\t* token $closer on line $line changed from T_CLOSE_SQUARE_BRACKET to T_CLOSE_SHORT_ARRAY".PHP_EOL; |
|
| 1126 | } |
|
| 1127 | } |
|
| 1128 | ||
| 1129 | continue; |
|
| @@ 649-654 (lines=6) @@ | ||
| 646 | $opener, |
|
| 647 | ); |
|
| 648 | ||
| 649 | if (PHP_CodeSniffer_VERBOSITY > 1) { |
|
| 650 | $type = $this->tokens[$stackPtr]['type']; |
|
| 651 | $closerType = $this->tokens[$scopeCloser]['type']; |
|
| 652 | echo str_repeat("\t", $depth); |
|
| 653 | echo "=> Found scope closer ($scopeCloser:$closerType) for $stackPtr:$type".PHP_EOL; |
|
| 654 | } |
|
| 655 | ||
| 656 | $validCloser = true; |
|
| 657 | if (($this->tokens[$stackPtr]['code'] === T_IF || $this->tokens[$stackPtr]['code'] === T_ELSEIF) |
|
| @@ 960-965 (lines=6) @@ | ||
| 957 | && isset(Util\Tokens::$emptyTokens[$this->tokens[($i - 1)]['code']]) === false |
|
| 958 | ) { |
|
| 959 | if ($this->scopeOpeners[$currType]['strict'] === true) { |
|
| 960 | if (PHP_CodeSniffer_VERBOSITY > 1) { |
|
| 961 | $type = $this->tokens[$stackPtr]['type']; |
|
| 962 | $lines = ($this->tokens[$i]['line'] - $startLine); |
|
| 963 | echo str_repeat("\t", $depth); |
|
| 964 | echo "=> Still looking for $stackPtr:$type scope opener after $lines lines".PHP_EOL; |
|
| 965 | } |
|
| 966 | } else { |
|
| 967 | if (PHP_CodeSniffer_VERBOSITY > 1) { |
|
| 968 | $type = $this->tokens[$stackPtr]['type']; |
|