Completed
Push — master ( c42a51...da7c37 )
by Tom
01:57
created
src/Builder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 			   'body' => $this->doPostProcessing($template)->output($document)
70 70
 			];
71 71
 
72
-			$this->cache->write($tssCache->getCacheKey($data) . $this->template, $result);
72
+			$this->cache->write($tssCache->getCacheKey($data).$this->template, $result);
73 73
 		}
74 74
 		unset($result['cache'], $result['renderTime']);
75 75
 		return (object) $result;
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 		$elementData = new \Transphporm\Hook\ElementData(new \SplObjectStorage(), $data);
80 80
 		$functionSet = new FunctionSet($elementData);
81 81
 		//To be a valid XML document it must have a root element, automatically wrap it in <template> to ensure it does
82
-		$template = new Template($this->isValidDoc($body) ? str_ireplace('<!doctype', '<!DOCTYPE', $body) : '<template>' . $body . '</template>' );
82
+		$template = new Template($this->isValidDoc($body) ? str_ireplace('<!doctype', '<!DOCTYPE', $body) : '<template>'.$body.'</template>');
83 83
 
84 84
 		$valueParser = new Parser\Value($functionSet);
85 85
 		$this->config = new Config($functionSet, $valueParser, $elementData, new Hook\Formatter(), new Parser\CssToXpath($functionSet, $template->getPrefix(), md5($this->tss)), $this->filePath, $headers);
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	}
104 104
 
105 105
     private function loadTemplateFromFile($file) {
106
-        $xml = $this->cache->load($this->cacheKey . $this->template, filemtime($this->template));
106
+        $xml = $this->cache->load($this->cacheKey.$this->template, filemtime($this->template));
107 107
         return $xml ? $xml : ['cache' => file_get_contents($this->template) ?: "", 'headers' => []];
108 108
     }
109 109
 
Please login to merge, or discard this patch.
src/SheetLoader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	public function updateRequired($data) {
47 47
 		if (!is_file($this->tss)) return true;
48 48
 
49
-		$this->cacheName = $this->getCacheKey($data) . $this->tss;
49
+		$this->cacheName = $this->getCacheKey($data).$this->tss;
50 50
 
51 51
 		$rules = $this->getRulesFromCache($this->tss, $data);
52 52
 		//Nothing was cached or the TSS file has changed, update is required
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
 		if (is_file($this->tss)) $this->getRulesFromCache($this->tss);
83 83
 		if ($this->cacheKey) {
84 84
 			$parser = new Parser\Value($data);
85
-			$x= $parser->parseTokens($this->cacheKey)[0];
86
-			$this->cacheName = $x . $this->tss;
85
+			$x = $parser->parseTokens($this->cacheKey)[0];
86
+			$this->cacheName = $x.$this->tss;
87 87
 			return $x;
88 88
 		}
89 89
 		else return '';
@@ -144,6 +144,6 @@  discard block
 block discarded – undo
144 144
 
145 145
 
146 146
 	private function sortPseudo($a, $b) {
147
-		return count($a->pseudo) < count($b->pseudo)  ? -1  :1;
147
+		return count($a->pseudo) < count($b->pseudo) ? -1 : 1;
148 148
 	}
149 149
 }
Please login to merge, or discard this patch.