@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | */ |
167 | 167 | public function sharedGet(string $path) : string |
168 | 168 | { |
169 | - return $this->lock($path, LOCK_SH, function ($handle) use ($path) { |
|
169 | + return $this->lock($path, LOCK_SH, function($handle) use ($path) { |
|
170 | 170 | return fread($handle, filesize($path) ?: 1); |
171 | 171 | }); |
172 | 172 | } |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | $this->createCacheFile(); |
198 | 198 | } |
199 | 199 | |
200 | - return $this->lock($cacheFile, LOCK_EX, function ($handle) use ($cacheKey, $cacheFile, $value) { |
|
200 | + return $this->lock($cacheFile, LOCK_EX, function($handle) use ($cacheKey, $cacheFile, $value) { |
|
201 | 201 | $contents = fread($handle, filesize($cacheFile) ?: 1) ?? []; |
202 | 202 | $contents = json_decode($contents, true) ?? []; |
203 | 203 |