@@ -46,7 +46,7 @@ discard block |
||
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 |
||
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 ''; |
@@ -146,6 +146,6 @@ discard block |
||
146 | 146 | |
147 | 147 | |
148 | 148 | private function sortPseudo($a, $b) { |
149 | - return count($a->pseudo) > count($b->pseudo) ? 1 : -1; |
|
149 | + return count($a->pseudo) > count($b->pseudo) ? 1 : -1; |
|
150 | 150 | } |
151 | 151 | } |