@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | { |
| 44 | 44 | parent::__construct($directory, $extension, $umask); |
| 45 | 45 | |
| 46 | - self::$emptyErrorHandler = function () { |
|
| 46 | + self::$emptyErrorHandler = function() { |
|
| 47 | 47 | }; |
| 48 | 48 | } |
| 49 | 49 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | { |
| 55 | 55 | $value = $this->includeFileForId($id); |
| 56 | 56 | |
| 57 | - if (! $value) { |
|
| 57 | + if ( ! $value) { |
|
| 58 | 58 | return false; |
| 59 | 59 | } |
| 60 | 60 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | $value = $this->includeFileForId($id); |
| 74 | 74 | |
| 75 | - if (! $value) { |
|
| 75 | + if ( ! $value) { |
|
| 76 | 76 | return false; |
| 77 | 77 | } |
| 78 | 78 | |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $lifeTime = time() + $lifeTime; |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - $filename = $this->getFilename($id); |
|
| 91 | + $filename = $this->getFilename($id); |
|
| 92 | 92 | |
| 93 | 93 | $value = [ |
| 94 | 94 | 'lifetime' => $lifeTime, |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | restore_error_handler(); |
| 124 | 124 | |
| 125 | - if (! isset($value['lifetime'])) { |
|
| 125 | + if ( ! isset($value['lifetime'])) { |
|
| 126 | 126 | return false; |
| 127 | 127 | } |
| 128 | 128 | |
@@ -64,9 +64,9 @@ discard block |
||
| 64 | 64 | foreach ($this->cacheProviders as $idProvider => $cacheProvider) { |
| 65 | 65 | $items = $cacheProvider->doFetchMultiple($keys); |
| 66 | 66 | foreach ($items as $key => $value) { |
| 67 | - if(false !== $value) { |
|
| 67 | + if (false !== $value) { |
|
| 68 | 68 | $returnValues[$key] = $value; |
| 69 | - for ($subIDProvider = $idProvider - 1 ; $subIDProvider >= 0 ; $subIDProvider--) { |
|
| 69 | + for ($subIDProvider = $idProvider - 1; $subIDProvider >= 0; $subIDProvider--) { |
|
| 70 | 70 | $this->cacheProviders[$subIDProvider]->doSave($key, $value); |
| 71 | 71 | } |
| 72 | 72 | unset($keys[$key]); |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $value = $cacheProvider->doFetch($id); |
| 91 | 91 | |
| 92 | 92 | // We populate all the previous cache layers (that are assumed to be faster) |
| 93 | - for ($subKey = $key - 1 ; $subKey >= 0 ; $subKey--) { |
|
| 93 | + for ($subKey = $key - 1; $subKey >= 0; $subKey--) { |
|
| 94 | 94 | $this->cacheProviders[$subKey]->doSave($id, $value); |
| 95 | 95 | } |
| 96 | 96 | |