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