Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | 2 | public function fetch(array $annotationPaths): OpenApi |
|
43 | { |
||
44 | 2 | if (count($annotationPaths) === 0) { |
|
45 | 1 | throw new \InvalidArgumentException('$annotationPaths cannot be empty array'); |
|
46 | } |
||
47 | |||
48 | 1 | $directories = array_map(fn(string $path) => $this->aliases->get($path), $annotationPaths); |
|
49 | 1 | return scan($directories); |
|
50 | } |
||
52 |