@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function exists(string $key): bool |
49 | 49 | { |
50 | - return (bool) $this->client->exists($key); |
|
50 | + return (bool)$this->client->exists($key); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function remove(string $key): bool |
73 | 73 | { |
74 | - return (bool) $this->client->del($key); |
|
74 | + return (bool)$this->client->del($key); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -95,6 +95,6 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function setExpired(string $key, $value, int $ttl = 0): bool |
97 | 97 | { |
98 | - return (bool) $this->client->setex($key, $ttl, $value); |
|
98 | + return (bool)$this->client->setex($key, $ttl, $value); |
|
99 | 99 | } |
100 | 100 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | protected function getFileName(string $key): string |
76 | 76 | { |
77 | - return $this->cacheDir . \DIRECTORY_SEPARATOR . self::CACHE_FILE_PREFIX . $key . '.php'; |
|
77 | + return $this->cacheDir.\DIRECTORY_SEPARATOR.self::CACHE_FILE_PREFIX.$key.'.php'; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | $content = \var_export($item, true); |
101 | 101 | } |
102 | 102 | |
103 | - $content = '<?php return ' . $content . ';'; |
|
103 | + $content = '<?php return '.$content.';'; |
|
104 | 104 | |
105 | 105 | $cacheFile = $this->getFileName($key); |
106 | 106 |