@@ 199-209 (lines=11) @@ | ||
196 | for ($i = 0; $i < $this->tokenCount; $i++) { |
|
197 | // If we got the namespace |
|
198 | if ($this->tokens[$i][0] === T_NAMESPACE) { |
|
199 | for ($j = $i + 1; $j < count($this->tokens); $j++) { |
|
200 | if ($this->tokens[$j][0] === T_STRING) { |
|
201 | $namespace .= '\\' . $this->tokens[$j][1]; |
|
202 | ||
203 | } elseif ($this->tokens[$j] === '{' || |
|
204 | $this->tokens[$j] === ';' || |
|
205 | $this->tokens[$j][0] === T_CURLY_OPEN |
|
206 | ) { |
|
207 | break; |
|
208 | } |
|
209 | } |
|
210 | } |
|
211 | } |
|
212 | ||
@@ 349-360 (lines=12) @@ | ||
346 | // if we got a use statement |
|
347 | if ($this->tokens[$i][0] === T_USE) { |
|
348 | $structure = ''; |
|
349 | for ($j = $i + 1; $j < count($this->tokens); $j++) { |
|
350 | if ($this->tokens[$j][0] === T_STRING) { |
|
351 | $structure .= '\\' . $this->tokens[$j][1]; |
|
352 | ||
353 | } elseif ($this->tokens[$j] === '{' || |
|
354 | $this->tokens[$j] === ';' || |
|
355 | $this->tokens[$j][0] === T_CURLY_OPEN |
|
356 | ) { |
|
357 | $structures[] = $structure; |
|
358 | break; |
|
359 | } |
|
360 | } |
|
361 | } |
|
362 | } |
|
363 |