File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ $startToken = false;
1818
1919// Find the first token that's on/after TM_LINE_NUMBER
2020for ($x = 0; $x < $numTokens; $x++) {
21- $token = $tokens[$x];
22-
2321 if (is_array($tokens[$x]) && $tokens[$x][2] > = $seekLine) {
2422 $startToken = $x;
2523 break;
@@ -36,9 +34,7 @@ $functionName = false;
3634
3735// Work backwards until we find the function declaration
3836for ($x = $startToken; $x > = 0; $x--) {
39- $token = $tokens[$x];
40-
41- if (is_array($token) && T_FUNCTION === $tokens[$x][0]) {
37+ if (is_array($tokens[$x]) && T_FUNCTION === $tokens[$x][0]) {
4238 // Try to find a function name, which may not exist if this is a closure
4339 for ($y = $x + 1; $y < $numTokens; $y++) {
4440 if (is_array($tokens[$y])) {
You can’t perform that action at this time.
0 commit comments