@@ -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 | ); |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | $this->createCacheFile(); |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | - return $this->lockedSet($cacheFile, function (array $data) use ($value, $cacheKey) { |
|
| 171 | + return $this->lockedSet($cacheFile, function(array $data) use ($value, $cacheKey) { |
|
| 172 | 172 | if ( ! empty($data[$cacheKey]) && \is_array($value)) { |
| 173 | 173 | $data[$cacheKey] = $value + $data[$cacheKey]; |
| 174 | 174 | } else { |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | |
| 190 | 190 | return $this->lockedSet( |
| 191 | 191 | $this->getCacheFile(), |
| 192 | - function ($data) use ($cacheKey, &$deletion) { |
|
| 192 | + function($data) use ($cacheKey, &$deletion) { |
|
| 193 | 193 | if (isset($data[$cacheKey])) { |
| 194 | 194 | unset($data[$cacheKey]); |
| 195 | 195 | $deletion = true; |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | public function lockedGet(string $path, bool $exclusive = false, ?callable $callback = null) |
| 319 | 319 | { |
| 320 | 320 | if ($callback === null) { |
| 321 | - $callback = function ($handler, $data) { |
|
| 321 | + $callback = function($handler, $data) { |
|
| 322 | 322 | return $data; |
| 323 | 323 | }; |
| 324 | 324 | } |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | */ |
| 374 | 374 | public function lockedSet(string $path, callable $callback) |
| 375 | 375 | { |
| 376 | - $output = $this->lockedGet($path, true, function ($handle, array $data) use ($callback) { |
|
| 376 | + $output = $this->lockedGet($path, true, function($handle, array $data) use ($callback) { |
|
| 377 | 377 | $data = $callback($data) ?? []; |
| 378 | 378 | |
| 379 | 379 | ftruncate($handle, 0); |