@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Karma\Formatters; |
6 | 6 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | { |
52 | 52 | if($value === '<string>') |
53 | 53 | { |
54 | - $result = static function ($value) use ($result) { |
|
54 | + $result = static function($value) use ($result) { |
|
55 | 55 | return str_replace('<string>', $value, $result); |
56 | 56 | }; |
57 | 57 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Karma\Filesystem\Adapters; |
6 | 6 | |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $this->cache = $cache; |
25 | 25 | $this->ttl = $ttl; |
26 | 26 | |
27 | - if(!$serializeCache) |
|
27 | + if( ! $serializeCache) |
|
28 | 28 | { |
29 | 29 | $serializeCache = new InMemory(); |
30 | 30 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | public function read($key) |
52 | 52 | { |
53 | - if ($this->needsReload($key)) |
|
53 | + if($this->needsReload($key)) |
|
54 | 54 | { |
55 | 55 | $contents = $this->source->read($key); |
56 | 56 | $this->cache->write($key, $contents); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | public function exists($key) |
91 | 91 | { |
92 | - if ($this->needsReload($key)) |
|
92 | + if($this->needsReload($key)) |
|
93 | 93 | { |
94 | 94 | return $this->source->exists($key); |
95 | 95 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | { |
107 | 107 | $cacheFile = 'keys.cache'; |
108 | 108 | |
109 | - if ($this->needsRebuild($cacheFile)) |
|
109 | + if($this->needsRebuild($cacheFile)) |
|
110 | 110 | { |
111 | 111 | $keys = $this->source->keys(); |
112 | 112 | sort($keys); |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | $needsReload = $dateCache < $dateSource; |
174 | 174 | } |
175 | 175 | } |
176 | - catch (\RuntimeException $e) |
|
176 | + catch(\RuntimeException $e) |
|
177 | 177 | { |
178 | 178 | } |
179 | 179 | } |