Completed
Push — v5 ( 29b1c1...7eac3b )
by Georges
02:34
created
src/phpFastCache/Drivers/Files/Driver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             /*
72 72
              * Skip if Existing Caching in Options
73 73
              */
74
-            if (isset($option[ 'skipExisting' ]) && $option[ 'skipExisting' ] == true && file_exists($file_path)) {
74
+            if (isset($option['skipExisting']) && $option['skipExisting'] == true && file_exists($file_path)) {
75 75
                 $content = $this->readfile($file_path);
76 76
                 $old = $this->decode($content);
77 77
                 $toWrite = false;
@@ -248,11 +248,11 @@  discard block
 block discarded – undo
248 248
                         if (strpos($subdirFile, '.') === false) {
249 249
                             $key = $subdirFile;
250 250
                         } else {
251
-                            $key = explode('.', $subdirFile)[ 0 ];
251
+                            $key = explode('.', $subdirFile)[0];
252 252
                         }
253
-                        $content[ $key ] = [
253
+                        $content[$key] = [
254 254
                           'size' => $size,
255
-                          'write_time' => (isset($object[ 'write_time' ]) ? $object[ 'write_time' ] : null),
255
+                          'write_time' => (isset($object['write_time']) ? $object['write_time'] : null),
256 256
                         ];
257 257
                         if ($object->isExpired()) {
258 258
                             @unlink($file_path);
Please login to merge, or discard this patch.