@@ -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 | |
@@ -69,6 +69,9 @@ discard block |
||
| 69 | 69 | ]; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @param integer $pathLength |
|
| 74 | + */ |
|
| 72 | 75 | private static function getBasePathForWindowsPathLengthTests($pathLength) |
| 73 | 76 | { |
| 74 | 77 | return FileCacheTest::getBasePathForWindowsPathLengthTests($pathLength); |
@@ -78,7 +81,7 @@ discard block |
||
| 78 | 81 | * @param int $length |
| 79 | 82 | * @param string $basePath |
| 80 | 83 | * |
| 81 | - * @return array |
|
| 84 | + * @return string[] |
|
| 82 | 85 | */ |
| 83 | 86 | private static function getKeyAndPathFittingLength($length, $basePath) |
| 84 | 87 | { |
@@ -170,7 +170,7 @@ |
||
| 170 | 170 | * @param int $length |
| 171 | 171 | * @param string $basePath |
| 172 | 172 | * |
| 173 | - * @return array |
|
| 173 | + * @return string[] |
|
| 174 | 174 | */ |
| 175 | 175 | public static function getKeyAndPathFittingLength($length, $basePath) |
| 176 | 176 | { |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | */ |
| 192 | 192 | private function getNamespacedId($id) |
| 193 | 193 | { |
| 194 | - $namespaceVersion = $this->getNamespaceVersion(); |
|
| 194 | + $namespaceVersion = $this->getNamespaceVersion(); |
|
| 195 | 195 | |
| 196 | 196 | return sprintf('%s[%s][%s]', $this->namespace, $id, $namespaceVersion); |
| 197 | 197 | } |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | $success = true; |
| 275 | 275 | |
| 276 | 276 | foreach ($keysAndValues as $key => $value) { |
| 277 | - if (!$this->doSave($key, $value, $lifetime)) { |
|
| 277 | + if ( ! $this->doSave($key, $value, $lifetime)) { |
|
| 278 | 278 | $success = false; |
| 279 | 279 | } |
| 280 | 280 | } |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | $success = true; |
| 307 | 307 | |
| 308 | 308 | foreach ($keys as $key) { |
| 309 | - if (! $this->doDelete($key)) { |
|
| 309 | + if ( ! $this->doDelete($key)) { |
|
| 310 | 310 | $success = false; |
| 311 | 311 | } |
| 312 | 312 | } |