Completed
Push — master ( 04a4d1...1bb4b5 )
by Tom
01:56
created
src/SheetLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.