@@ -74,7 +74,7 @@ |
||
| 74 | 74 | */ |
| 75 | 75 | public function setExpired(string $key, $value, int $ttl = 0): bool |
| 76 | 76 | { |
| 77 | - return (bool) \file_put_contents( |
|
| 77 | + return (bool)\file_put_contents( |
|
| 78 | 78 | $this->getFileName($key), |
| 79 | 79 | $this->serializer->serialize( |
| 80 | 80 | [ |
@@ -302,10 +302,10 @@ discard block |
||
| 302 | 302 | protected function getTheDefaultPrefix(): string |
| 303 | 303 | { |
| 304 | 304 | return ($_SERVER['SERVER_NAME'] ?? '') . '_' . |
| 305 | - ($_SERVER['THEME'] ?? '') . '_' . |
|
| 306 | - ($_SERVER['STAGE'] ?? '') . '_' . |
|
| 307 | - ($_SESSION['language'] ?? '') . '_' . |
|
| 308 | - ($_SESSION['language_extra'] ?? ''); |
|
| 305 | + ($_SERVER['THEME'] ?? '') . '_' . |
|
| 306 | + ($_SERVER['STAGE'] ?? '') . '_' . |
|
| 307 | + ($_SESSION['language'] ?? '') . '_' . |
|
| 308 | + ($_SESSION['language_extra'] ?? ''); |
|
| 309 | 309 | } |
| 310 | 310 | |
| 311 | 311 | /** |
@@ -699,7 +699,7 @@ discard block |
||
| 699 | 699 | && |
| 700 | 700 | \array_key_exists($storeKey, self::$STATIC_CACHE) === true |
| 701 | 701 | ) { |
| 702 | - unset(self::$STATIC_CACHE[$storeKey], self::$STATIC_CACHE_COUNTER[$storeKey], self::$STATIC_CACHE_EXPIRE[$storeKey] |
|
| 702 | + unset(self::$STATIC_CACHE[$storeKey], self::$STATIC_CACHE_COUNTER[$storeKey], self::$STATIC_CACHE_EXPIRE[$storeKey] |
|
| 703 | 703 | ); |
| 704 | 704 | } |
| 705 | 705 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | protected function getFileName(string $key): string |
| 71 | 71 | { |
| 72 | - return $this->cacheDir . \DIRECTORY_SEPARATOR . self::CACHE_FILE_PREFIX . $key . '.php'; |
|
| 72 | + return $this->cacheDir.\DIRECTORY_SEPARATOR.self::CACHE_FILE_PREFIX.$key.'.php'; |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
@@ -83,11 +83,11 @@ discard block |
||
| 83 | 83 | ]; |
| 84 | 84 | $content = \var_export($item, true); |
| 85 | 85 | |
| 86 | - $content = '<?php return ' . $content . ';'; |
|
| 86 | + $content = '<?php return '.$content.';'; |
|
| 87 | 87 | |
| 88 | 88 | $cacheFile = $this->getFileName($key); |
| 89 | 89 | |
| 90 | - $result = (bool) \file_put_contents( |
|
| 90 | + $result = (bool)\file_put_contents( |
|
| 91 | 91 | $cacheFile, |
| 92 | 92 | $content, |
| 93 | 93 | 0, |