@@ -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 | - throw new \Exception($filePath . ' not found in include path: ' . implode(';', $this->paths)); |
|
20 | + throw new \Exception($filePath.' not found in include path: '.implode(';', $this->paths)); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | private function loadFromPaths($filePath) { |
24 | 24 | foreach ($this->paths as $path) { |
25 | - if (is_file($path . DIRECTORY_SEPARATOR . $filePath)) return $path . DIRECTORY_SEPARATOR . $filePath; |
|
25 | + if (is_file($path.DIRECTORY_SEPARATOR.$filePath)) return $path.DIRECTORY_SEPARATOR.$filePath; |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | |
54 | 54 | $cachedOutput = $this->loadTemplate(); |
55 | 55 | //To be a valid XML document it must have a root element, automatically wrap it in <template> to ensure it does |
56 | - $template = new Template($this->isValidDoc($cachedOutput['body']) ? str_ireplace('<!doctype', '<!DOCTYPE', $cachedOutput['body']) : '<template>' . $cachedOutput['body'] . '</template>' ); |
|
56 | + $template = new Template($this->isValidDoc($cachedOutput['body']) ? str_ireplace('<!doctype', '<!DOCTYPE', $cachedOutput['body']) : '<template>'.$cachedOutput['body'].'</template>'); |
|
57 | 57 | $valueParser = new Parser\Value($functionSet); |
58 | 58 | $this->config = new Config($functionSet, $valueParser, $elementData, new Hook\Formatter(), new Parser\CssToXpath($functionSet, $template->getPrefix(), md5($this->tss)), $this->filePath, $headers); |
59 | 59 |