Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | 1 | public function fromMethodAnnotations(): array |
|
35 | { |
||
36 | 1 | $useStatements = []; |
|
37 | |||
38 | 1 | foreach ($this->inspector->methodAnnotations($this->includeExisting) as $annotation) { |
|
39 | 1 | foreach ($annotation->namespaces as $namespace) { |
|
40 | 1 | if (! $this->inspector->hasSameNamespace($namespace)) { |
|
41 | 1 | $useStatements[class_basename($namespace)] = $namespace; |
|
42 | } |
||
43 | } |
||
44 | } |
||
45 | |||
46 | 1 | return $useStatements; |
|
47 | } |
||
49 |