Completed
Push — master ( 022040...908f5a )
by Tom
04:25 queued 02:39
created
src/Parser/Tokenizer/Brackets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
 class Brackets implements \Transphporm\Parser\Tokenizable {
12 12
 
13
-	private $types =  [
13
+	private $types = [
14 14
 			Tokenizer::OPEN_BRACKET => ['(', ')'],
15 15
 			Tokenizer::OPEN_BRACE => ['{', '}'],
16 16
 			Tokenizer::OPEN_SQUARE_BRACKET => ['[', ']']
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 			   'headers' => array_merge($result['headers'], $headers),
73 73
 			   'body' => $this->doPostProcessing($template)->output($document)
74 74
 			];
75
-			$this->cache->write($tssCache->getCacheKey($data) . $this->template, $result);
75
+			$this->cache->write($tssCache->getCacheKey($data).$this->template, $result);
76 76
 		}
77 77
 		unset($result['cache'], $result['renderTime']);
78 78
 		return (object) $result;
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 		$elementData = new \Transphporm\Hook\ElementData(new \SplObjectStorage(), $data);
83 83
 		$functionSet = new FunctionSet($elementData);
84 84
 		//To be a valid XML document it must have a root element, automatically wrap it in <template> to ensure it does
85
-		$template = new Template($this->isValidDoc($body) ? str_ireplace('<!doctype', '<!DOCTYPE', $body) : '<template>' . $body . '</template>' );
85
+		$template = new Template($this->isValidDoc($body) ? str_ireplace('<!doctype', '<!DOCTYPE', $body) : '<template>'.$body.'</template>');
86 86
 
87 87
 		$valueParser = new Parser\Value($functionSet);
88 88
 		$this->config = new Config($functionSet, $valueParser, $elementData, new Hook\Formatter(), new Parser\CssToXpath($functionSet, $template->getPrefix(), md5($this->tss)), $this->filePath, $headers);
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	}
107 107
 
108 108
     private function loadTemplateFromFile($file) {
109
-        $xml = $this->cache->load($this->cacheKey . $file, filemtime($file));
109
+        $xml = $this->cache->load($this->cacheKey.$file, filemtime($file));
110 110
         return $xml ? $xml : ['cache' => file_get_contents($file) ?: "", 'headers' => []];
111 111
     }
112 112
 
Please login to merge, or discard this patch.
src/Rule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
 		$offset = $this->getUpdateFrequency($frequency);
50 50
 
51
-		if ($time > $this->lastRun + $offset) return true;
51
+		if ($time > $this->lastRun+$offset) return true;
52 52
 		else return false;
53 53
 	}
54 54
 
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
 		$num = (int) $frequency;
76 76
 		$unit = strtoupper(trim(str_replace($num, '', $frequency)));
77 77
 		if ($frequency == 'always') return 0;
78
-		else if ($frequency == 'never') return self::D*3650; //Not quite never, in 10 years will cause issues on 32 bit PHP builds re 2038 problem
78
+		else if ($frequency == 'never') return self::D * 3650; //Not quite never, in 10 years will cause issues on 32 bit PHP builds re 2038 problem
79 79
 
80
-		return $num * constant(self::class . '::' . $unit);
80
+		return $num * constant(self::class.'::'.$unit);
81 81
 	}
82 82
 }
Please login to merge, or discard this patch.
src/SheetLoader/TSSFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	}
43 43
 
44 44
 	public function updateRequired($data) {
45
-		$this->cacheName = $this->getCacheKey($data) . $this->fileName;
45
+		$this->cacheName = $this->getCacheKey($data).$this->fileName;
46 46
 
47 47
 		$rules = $this->getRulesFromCache($this->fileName);
48 48
 		//Nothing was cached or the TSS file has changed, update is required
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 		if ($this->cacheKey) {
60 60
 			$parser = new \Transphporm\Parser\Value($data);
61 61
 			$cacheKey = $parser->parseTokens($this->cacheKey)[0];
62
-			$this->cacheName = $cacheKey . $this->fileName;
62
+			$this->cacheName = $cacheKey.$this->fileName;
63 63
 			return $cacheKey;
64 64
 		}
65 65
 		else return '';
Please login to merge, or discard this patch.