Completed
Push — master ( 4a26e0...a6da3f )
by Richard
02:34
created
src/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
 		$cachedOutput = $this->loadTemplate();
49 49
 		//To be a valid XML document it must have a root element, automatically wrap it in <template> to ensure it does
50
-		$template = new Template($this->isValidDoc($cachedOutput['body']) ? str_ireplace('<!doctype', '<!DOCTYPE', $cachedOutput['body']) : '<template>' . $cachedOutput['body'] . '</template>' );
50
+		$template = new Template($this->isValidDoc($cachedOutput['body']) ? str_ireplace('<!doctype', '<!DOCTYPE', $cachedOutput['body']) : '<template>'.$cachedOutput['body'].'</template>');
51 51
 		$valueParser = new Parser\Value($data);
52 52
 		$config = new Config($data, $valueParser, $elementData, new Hook\Formatter(), new Parser\CssToXpath($data, $template->getPrefix()), $headers, $this->baseDir);
53 53
 
Please login to merge, or discard this patch.
src/Parser/Sheet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 		if (is_file($tss)) {
23 23
 			$this->file = $tss;
24 24
 			$this->rules = $this->getRulesFromCache($tss, $templatePrefix);
25
-			$baseDir = dirname(realpath($tss)) . DIRECTORY_SEPARATOR;
25
+			$baseDir = dirname(realpath($tss)).DIRECTORY_SEPARATOR;
26 26
 			if (empty($this->rules)) $tss = file_get_contents($tss);
27 27
 			else return;
28 28
 		}
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	}
46 46
 
47 47
 	private function getCacheKey() {
48
-		return $this->file . $this->prefix . dirname(realpath($this->file)) . DIRECTORY_SEPARATOR;
48
+		return $this->file.$this->prefix.dirname(realpath($this->file)).DIRECTORY_SEPARATOR;
49 49
 	}
50 50
 
51 51
 	public function parse($indexStart = 0) {
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 	}
114 114
 
115 115
 	private function import($args, $indexStart) {
116
-		if ($this->file !== null) $fileName = dirname(realpath($this->file)) . DIRECTORY_SEPARATOR . $args[0];
116
+		if ($this->file !== null) $fileName = dirname(realpath($this->file)).DIRECTORY_SEPARATOR.$args[0];
117 117
 		else $fileName = $args[0];
118 118
 		$sheet = new Sheet($fileName, $this->prefix, $this->baseDir, $this->xPath, $this->valueParser, $this->cache);
119 119
 		return $sheet->parse($indexStart);
Please login to merge, or discard this patch.