@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | private function getCacheKey($file) { |
| 44 | - return $file . $this->prefix . dirname(realpath($file)) . DIRECTORY_SEPARATOR; |
|
| 44 | + return $file.$this->prefix.dirname(realpath($file)).DIRECTORY_SEPARATOR; |
|
| 45 | 45 | } |
| 46 | 46 | //write the sheet to cache |
| 47 | 47 | public function write($file, $rules, $imports = []) { |
@@ -101,6 +101,6 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | |
| 103 | 103 | private function sortPseudo($a, $b) { |
| 104 | - return count($a->pseudo) < count($b->pseudo) ? -1 :1; |
|
| 104 | + return count($a->pseudo) < count($b->pseudo) ? -1 : 1; |
|
| 105 | 105 | } |
| 106 | 106 | } |
@@ -57,8 +57,8 @@ |
||
| 57 | 57 | |
| 58 | 58 | $cachedOutput = $this->loadTemplate(); |
| 59 | 59 | //To be a valid XML document it must have a root element, automatically wrap it in <template> to ensure it does |
| 60 | - $template = new Template($this->isValidDoc($cachedOutput['body']) ? str_ireplace('<!doctype', '<!DOCTYPE', $cachedOutput['body']) : '<template>' . $cachedOutput['body'] . '</template>' ); |
|
| 61 | - $tssCache = new SheetLoader($this->cache, $this->filePath, $this->tss, $template->getPrefix(), $this->time); |
|
| 60 | + $template = new Template($this->isValidDoc($cachedOutput['body']) ? str_ireplace('<!doctype', '<!DOCTYPE', $cachedOutput['body']) : '<template>'.$cachedOutput['body'].'</template>'); |
|
| 61 | + $tssCache = new SheetLoader($this->cache, $this->filePath, $this->tss, $template->getPrefix(), $this->time); |
|
| 62 | 62 | $valueParser = new Parser\Value($functionSet); |
| 63 | 63 | $this->config = new Config($functionSet, $valueParser, $elementData, new Hook\Formatter(), new Parser\CssToXpath($functionSet, $template->getPrefix(), md5($this->tss)), $this->filePath, $headers); |
| 64 | 64 | |