| @@ 664-666 (lines=3) @@ | ||
| 661 | { |
|
| 662 | foreach ($this->declarations as $declarations) { |
|
| 663 | foreach ($declarations as $name => $position) { |
|
| 664 | if ($tokenID >= $position[self::O_TOKEN] && $tokenID <= $position[self::C_TOKEN]) { |
|
| 665 | return $name; |
|
| 666 | } |
|
| 667 | } |
|
| 668 | } |
|
| 669 | ||
| @@ 683-685 (lines=3) @@ | ||
| 680 | private function activeNamespace($tokenID) |
|
| 681 | { |
|
| 682 | foreach ($this->namespaces as $namespace => $position) { |
|
| 683 | if ($tokenID >= $position[self::O_TOKEN] && $tokenID <= $position[self::C_TOKEN]) { |
|
| 684 | return $namespace; |
|
| 685 | } |
|
| 686 | } |
|
| 687 | ||
| 688 | //Seems like no namespace declaration |
|