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