|
@@ 184-187 (lines=4) @@
|
| 181 |
|
if ($token[0] === T_NAMESPACE) { |
| 182 |
|
$nextIsNamespace = true; |
| 183 |
|
$namespaceLine = $token[2]; |
| 184 |
|
} elseif ($isGlobalUse && $token[0] === T_CLASS) { |
| 185 |
|
$classesFound[] = static::getClassNameFromTokens($tokens, $index + 1); |
| 186 |
|
$isGlobalUse = false; |
| 187 |
|
} elseif ($token[0] === T_EXTENDS) { |
| 188 |
|
static::addUse(static::getClassNameFromTokens($tokens, $index + 1), $namespaceFound, $uses, $addUses); |
| 189 |
|
} elseif ($isGlobalUse && $token[0] === T_USE) { |
| 190 |
|
// What is the next token which is NOT a whitespace.. |
|
@@ 200-203 (lines=4) @@
|
| 197 |
|
} |
| 198 |
|
$walkForwardSteps++; |
| 199 |
|
} while($continue); |
| 200 |
|
if($nextNonWhitespaceToken[0] === T_STRING ) { |
| 201 |
|
$uses[] = static::getClassNameFromTokens($tokens, $index + 1); |
| 202 |
|
$lastUseLine = $token[2]; |
| 203 |
|
} |
| 204 |
|
} |
| 205 |
|
|
| 206 |
|
if ($nextIsNamespace) { |