@@ 1375-1384 (lines=10) @@ | ||
1372 | T_NS_SEPARATOR => true, |
|
1373 | T_PAAMAYIM_NEKUDOTAYIM => true, |
|
1374 | ); |
|
1375 | if (isset($context[$this->tokens[$x]['code']]) === true) { |
|
1376 | if (PHP_CodeSniffer_VERBOSITY > 1) { |
|
1377 | $line = $this->tokens[$i]['line']; |
|
1378 | $type = $this->tokens[$i]['type']; |
|
1379 | echo "\t* token $i on line $line changed from $type to T_STRING".PHP_EOL; |
|
1380 | } |
|
1381 | ||
1382 | $this->tokens[$i]['code'] = T_STRING; |
|
1383 | $this->tokens[$i]['type'] = 'T_STRING'; |
|
1384 | } |
|
1385 | } else if ($this->tokens[$i]['code'] === T_CONST) { |
|
1386 | // Context sensitive keywords support. |
|
1387 | for ($x = ($i + 1); $i < $numTokens; $x++) { |
|
@@ 1394-1403 (lines=10) @@ | ||
1391 | } |
|
1392 | } |
|
1393 | ||
1394 | if ($this->tokens[$x]['code'] !== T_STRING) { |
|
1395 | if (PHP_CodeSniffer_VERBOSITY > 1) { |
|
1396 | $line = $this->tokens[$x]['line']; |
|
1397 | $type = $this->tokens[$x]['type']; |
|
1398 | echo "\t* token $x on line $line changed from $type to T_STRING".PHP_EOL; |
|
1399 | } |
|
1400 | ||
1401 | $this->tokens[$x]['code'] = T_STRING; |
|
1402 | $this->tokens[$x]['type'] = 'T_STRING'; |
|
1403 | } |
|
1404 | } else if ($this->tokens[$i]['code'] === T_PAAMAYIM_NEKUDOTAYIM) { |
|
1405 | // Context sensitive keywords support. |
|
1406 | for ($x = ($i + 1); $i < $numTokens; $x++) { |