Completed
Push — master ( 609c6a...23e35e )
by Tom
02:19
created
src/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	public function output($data = null, $document = false) {
53 53
 		$headers = [];
54 54
 		$result = $this->loadTemplate();
55
-		$tssCache = new SheetLoader($this->cache,  $this->filePath, $this->tss, $this->time);
55
+		$tssCache = new SheetLoader($this->cache, $this->filePath, $this->tss, $this->time);
56 56
 
57 57
 		//If an update is required, run any rules that need to be run. Otherwise, return the result from cache
58 58
 		//without creating any further objects, loading a DomDocument, etc
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 		$elementData = new \Transphporm\Hook\ElementData(new \SplObjectStorage(), $data);
76 76
 		$functionSet = new FunctionSet($elementData);
77 77
 		//To be a valid XML document it must have a root element, automatically wrap it in <template> to ensure it does
78
-		$template = new Template($this->isValidDoc($body) ? str_ireplace('<!doctype', '<!DOCTYPE', $body) : '<template>' . $body . '</template>' );
78
+		$template = new Template($this->isValidDoc($body) ? str_ireplace('<!doctype', '<!DOCTYPE', $body) : '<template>'.$body.'</template>');
79 79
 
80 80
 		$valueParser = new Parser\Value($functionSet);
81 81
 		$this->config = new Config($functionSet, $valueParser, $elementData, new Hook\Formatter(), new Parser\CssToXpath($functionSet, $template->getPrefix(), md5($this->tss)), $this->filePath, $headers);
Please login to merge, or discard this patch.
src/SheetLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 
48 48
 	private function getCacheKey($file) {
49
-		return $file . dirname(realpath($file)) . DIRECTORY_SEPARATOR;
49
+		return $file.dirname(realpath($file)).DIRECTORY_SEPARATOR;
50 50
 	}
51 51
 	//write the sheet to cache
52 52
     public function write($file, $rules, $imports = []) {
@@ -106,6 +106,6 @@  discard block
 block discarded – undo
106 106
 
107 107
 
108 108
 	private function sortPseudo($a, $b) {
109
-		return count($a->pseudo) < count($b->pseudo)  ? -1  :1;
109
+		return count($a->pseudo) < count($b->pseudo) ? -1 : 1;
110 110
 	}
111 111
 }
Please login to merge, or discard this patch.