|
@@ 1205-1215 (lines=11) @@
|
| 1202 |
|
echo "\t* token $i on line $line changed from T_FUNCTION to T_CLOSURE".PHP_EOL; |
| 1203 |
|
} |
| 1204 |
|
|
| 1205 |
|
for ($x = ($this->tokens[$i]['scope_opener'] + 1); $x < $this->tokens[$i]['scope_closer']; $x++) { |
| 1206 |
|
if (isset($this->tokens[$x]['conditions'][$i]) === false) { |
| 1207 |
|
continue; |
| 1208 |
|
} |
| 1209 |
|
|
| 1210 |
|
$this->tokens[$x]['conditions'][$i] = T_CLOSURE; |
| 1211 |
|
if (PHP_CodeSniffer_VERBOSITY > 1) { |
| 1212 |
|
$type = $this->tokens[$x]['type']; |
| 1213 |
|
echo "\t\t* cleaned $x ($type) *".PHP_EOL; |
| 1214 |
|
} |
| 1215 |
|
} |
| 1216 |
|
} |
| 1217 |
|
|
| 1218 |
|
$tokenAfterReturnTypeHint = $this->tokens[$i]['scope_opener']; |
|
@@ 1283-1293 (lines=11) @@
|
| 1280 |
|
echo "\t* token $i on line $line changed from T_CLASS to T_ANON_CLASS".PHP_EOL; |
| 1281 |
|
} |
| 1282 |
|
|
| 1283 |
|
for ($x = ($this->tokens[$i]['scope_opener'] + 1); $x < $this->tokens[$i]['scope_closer']; $x++) { |
| 1284 |
|
if (isset($this->tokens[$x]['conditions'][$i]) === false) { |
| 1285 |
|
continue; |
| 1286 |
|
} |
| 1287 |
|
|
| 1288 |
|
$this->tokens[$x]['conditions'][$i] = T_ANON_CLASS; |
| 1289 |
|
if (PHP_CodeSniffer_VERBOSITY > 1) { |
| 1290 |
|
$type = $this->tokens[$x]['type']; |
| 1291 |
|
echo "\t\t* cleaned $x ($type) *".PHP_EOL; |
| 1292 |
|
} |
| 1293 |
|
} |
| 1294 |
|
} |
| 1295 |
|
|
| 1296 |
|
continue; |