@@ -22,7 +22,7 @@ |
||
22 | 22 | if (is_file($tss)) { |
23 | 23 | $this->file = $tss; |
24 | 24 | $this->rules = $this->cache->load($tss); |
25 | - $filePath->setBaseDir(dirname(realpath($tss)) . DIRECTORY_SEPARATOR); |
|
25 | + $filePath->setBaseDir(dirname(realpath($tss)).DIRECTORY_SEPARATOR); |
|
26 | 26 | if (empty($this->rules)) $tss = file_get_contents($tss); |
27 | 27 | else return; |
28 | 28 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $this->valueParser = $valueParser; |
26 | 26 | $this->pseudoMatcher = $pseudoMatcher; |
27 | 27 | $this->functionSet = $functionSet; |
28 | - if ($this->file !== null) $filePath->setBaseDir(dirname(realpath($this->file)) . DIRECTORY_SEPARATOR); |
|
28 | + if ($this->file !== null) $filePath->setBaseDir(dirname(realpath($this->file)).DIRECTORY_SEPARATOR); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | public function run(\DomElement $element) { |
@@ -51,7 +51,7 @@ |
||
51 | 51 | |
52 | 52 | $cachedOutput = $this->loadTemplate(); |
53 | 53 | //To be a valid XML document it must have a root element, automatically wrap it in <template> to ensure it does |
54 | - $template = new Template($this->isValidDoc($cachedOutput['body']) ? str_ireplace('<!doctype', '<!DOCTYPE', $cachedOutput['body']) : '<template>' . $cachedOutput['body'] . '</template>' ); |
|
54 | + $template = new Template($this->isValidDoc($cachedOutput['body']) ? str_ireplace('<!doctype', '<!DOCTYPE', $cachedOutput['body']) : '<template>'.$cachedOutput['body'].'</template>'); |
|
55 | 55 | $valueParser = new Parser\Value($functionSet); |
56 | 56 | $config = new Config($functionSet, $valueParser, $elementData, new Hook\Formatter(), new Parser\CssToXpath($functionSet, $template->getPrefix()), new FilePath($this->rootDir), $headers); |
57 | 57 |