@@ 1172-1181 (lines=10) @@ | ||
1169 | continue; |
|
1170 | } |
|
1171 | ||
1172 | if (in_array($this->tokens[$x]['code'], array(T_STRING, T_OPEN_PARENTHESIS, T_BITWISE_AND), true) === false) { |
|
1173 | if (PHP_CodeSniffer_VERBOSITY > 1) { |
|
1174 | $line = $this->tokens[$x]['line']; |
|
1175 | $type = $this->tokens[$x]['type']; |
|
1176 | echo "\t* token $x on line $line changed from $type to T_STRING".PHP_EOL; |
|
1177 | } |
|
1178 | ||
1179 | $this->tokens[$x]['code'] = T_STRING; |
|
1180 | $this->tokens[$x]['type'] = 'T_STRING'; |
|
1181 | } |
|
1182 | ||
1183 | /* |
|
1184 | Detect functions that are actually closures and |
|
@@ 1413-1422 (lines=10) @@ | ||
1410 | } |
|
1411 | } |
|
1412 | ||
1413 | if (in_array($this->tokens[$x]['code'], array(T_STRING, T_VARIABLE, T_DOLLAR), true) === false) { |
|
1414 | if (PHP_CodeSniffer_VERBOSITY > 1) { |
|
1415 | $line = $this->tokens[$x]['line']; |
|
1416 | $type = $this->tokens[$x]['type']; |
|
1417 | echo "\t* token $x on line $line changed from $type to T_STRING".PHP_EOL; |
|
1418 | } |
|
1419 | ||
1420 | $this->tokens[$x]['code'] = T_STRING; |
|
1421 | $this->tokens[$x]['type'] = 'T_STRING'; |
|
1422 | } |
|
1423 | }//end if |
|
1424 | ||
1425 | if (($this->tokens[$i]['code'] !== T_CASE |