| Conditions | 5 |
| Paths | 5 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | 1 | private function findPathRecursively(array $paths): void |
|
| 44 | { |
||
| 45 | 1 | foreach ($paths as $path) { |
|
| 46 | 1 | if (!file_exists($path)) { |
|
| 47 | 1 | continue; |
|
| 48 | } |
||
| 49 | |||
| 50 | 1 | $this->paths[$path] = $path; |
|
| 51 | |||
| 52 | 1 | foreach ($this->getImports($path) as $import) { |
|
| 53 | 1 | $resource = $import['resource']; |
|
| 54 | |||
| 55 | 1 | if (isset($this->paths[$resource])) { |
|
| 56 | 1 | continue; |
|
| 57 | } |
||
| 58 | |||
| 59 | 1 | $this->findPathRecursively([$resource]); |
|
| 60 | } |
||
| 80 |