| Conditions | 3 |
| Paths | 3 |
| Total Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | private function loadFromPaths($filePath) { |
||
| 27 | foreach ($this->paths as $path) { |
||
| 28 | if (is_file($path . DIRECTORY_SEPARATOR . $filePath)) return $path . DIRECTORY_SEPARATOR . $filePath; |
||
| 29 | } |
||
| 30 | |||
| 31 | throw new \Exception('File ' . $filePath . ' not found in paths (' . implode(', ', $this->paths) . ')'); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |