src/Helper/Annotate/AnnotationGenerator.php 1 location
|
@@ 111-116 (lines=6) @@
|
108 |
|
if (!isset($tokens[$index][0])) { |
109 |
|
continue; |
110 |
|
} |
111 |
|
if (T_NAMESPACE === $tokens[$index][0]) { |
112 |
|
$index += 2; // Skip namespace keyword and whitespace |
113 |
|
while (isset($tokens[$index]) && is_array($tokens[$index])) { |
114 |
|
$namespace .= $tokens[$index++][1]; |
115 |
|
} |
116 |
|
} |
117 |
|
if (T_CLASS === $tokens[$index][0]) { |
118 |
|
$index += 2; // Skip class keyword and whitespace |
119 |
|
$class = $namespace.'\\'.$tokens[$index][1]; |
src/Helper/Annotate/ReflectedClass.php 1 location
|
@@ 187-193 (lines=7) @@
|
184 |
|
$use .= $tokens[$index++][1]; |
185 |
|
} |
186 |
|
$alias = null; |
187 |
|
if ($tokens[$index][0] == T_AS) { |
188 |
|
$alias = ''; |
189 |
|
$index += 2; |
190 |
|
while (isset($tokens[$index]) && is_array($tokens[$index])) { |
191 |
|
$alias .= $tokens[$index++][1]; |
192 |
|
} |
193 |
|
} |
194 |
|
$this->addUse($use, $alias); |
195 |
|
} |
196 |
|
if (T_CLASS == $tokens[$index][0]) { |