Passed
Pull Request — v1 (#368)
by Ankit
02:30
created
src/Cache/FileStore.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.