@@ -71,7 +71,7 @@ discard block |
||
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 |
||
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); |