@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | return $this->lockedGet( |
115 | 115 | $this->getCacheFile(), |
116 | 116 | false, |
117 | - function ($handler, array $content) use ($withExpired, $key) { |
|
117 | + function($handler, array $content) use ($withExpired, $key) { |
|
118 | 118 | if (empty($content[$key])) { |
119 | 119 | return null; |
120 | 120 | } |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | { |
149 | 149 | return $this->lockedSet( |
150 | 150 | $path, |
151 | - function () use ($contents) { |
|
151 | + function() use ($contents) { |
|
152 | 152 | return $contents; |
153 | 153 | } |
154 | 154 | ); |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | $this->createCacheFile(); |
167 | 167 | } |
168 | 168 | |
169 | - $this->lockedSet($cacheFile, function (array $data) use ($value, $cacheKey) { |
|
169 | + $this->lockedSet($cacheFile, function(array $data) use ($value, $cacheKey) { |
|
170 | 170 | if ( ! empty($data[$cacheKey]) && \is_array($value)) { |
171 | 171 | $data[$cacheKey] = $value + $data[$cacheKey]; |
172 | 172 | } else { |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | |
188 | 188 | return $this->lockedSet( |
189 | 189 | $this->getCacheFile(), |
190 | - function ($data) use ($cacheKey, &$deletion) { |
|
190 | + function($data) use ($cacheKey, &$deletion) { |
|
191 | 191 | if (isset($data[$cacheKey])) { |
192 | 192 | unset($data[$cacheKey]); |
193 | 193 | $deletion = true; |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | public function lockedGet(string $path, bool $exclusive = false, ?callable $callback = null) |
317 | 317 | { |
318 | 318 | if ($callback === null) { |
319 | - $callback = function ($handler, $data) { |
|
319 | + $callback = function($handler, $data) { |
|
320 | 320 | return $data; |
321 | 321 | }; |
322 | 322 | } |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | */ |
376 | 376 | public function lockedSet(string $path, callable $callback) |
377 | 377 | { |
378 | - return $this->lockedGet($path, true, function ($handle, array $data) use ($callback) { |
|
378 | + return $this->lockedGet($path, true, function($handle, array $data) use ($callback) { |
|
379 | 379 | $data = $callback($data) ?? []; |
380 | 380 | |
381 | 381 | ftruncate($handle, 0); |