@@ -19,15 +19,15 @@ |
||
19 | 19 | |
20 | 20 | public function getFilePath($filePath) { |
21 | 21 | if (is_file($filePath)) return $filePath; |
22 | - else if (is_file($this->baseDir . DIRECTORY_SEPARATOR . $filePath)) return $this->baseDir . DIRECTORY_SEPARATOR . $filePath; |
|
22 | + else if (is_file($this->baseDir.DIRECTORY_SEPARATOR.$filePath)) return $this->baseDir.DIRECTORY_SEPARATOR.$filePath; |
|
23 | 23 | else return $this->loadFromPaths($filePath); |
24 | 24 | } |
25 | 25 | |
26 | 26 | private function loadFromPaths($filePath) { |
27 | 27 | foreach ($this->paths as $path) { |
28 | - if (is_file($path . DIRECTORY_SEPARATOR . $filePath)) return $path . DIRECTORY_SEPARATOR . $filePath; |
|
28 | + if (is_file($path.DIRECTORY_SEPARATOR.$filePath)) return $path.DIRECTORY_SEPARATOR.$filePath; |
|
29 | 29 | } |
30 | 30 | |
31 | - throw new \Exception('File ' . $filePath . ' not found in paths (' . implode(', ', $this->paths) . ')'); |
|
31 | + throw new \Exception('File '.$filePath.' not found in paths ('.implode(', ', $this->paths).')'); |
|
32 | 32 | } |
33 | 33 | } |