@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @param string|int $ttl |
30 | 30 | * @return bool |
31 | 31 | */ |
32 | - public function store(string $cacheKey, mixed $cacheData, string $namespace, string|int $ttl = 3600) |
|
32 | + public function store(string $cacheKey, mixed $cacheData, string $namespace, string | int $ttl = 3600) |
|
33 | 33 | { |
34 | 34 | if (!empty($this->retrieve($cacheKey, $namespace))) { |
35 | 35 | return $this->update($cacheKey, $cacheData, $namespace); |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * @param string $namespace |
175 | 175 | * @return bool |
176 | 176 | */ |
177 | - public function renew(string $cacheKey, string|int $ttl, string $namespace = '') |
|
177 | + public function renew(string $cacheKey, string | int $ttl, string $namespace = '') |
|
178 | 178 | { |
179 | 179 | $currentTime = date('Y-m-d H:i:s'); |
180 | 180 | if (!$this->hasValidCache($cacheKey, $namespace, $currentTime)) { |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | |
184 | 184 | $query = $this->getRenewExpirationQueryWithDriver(); |
185 | 185 | $stmt = $this->connection->prepare($query); |
186 | - $stmt->bindValue(':ttl', (int) $ttl, PDO::PARAM_INT); |
|
186 | + $stmt->bindValue(':ttl', (int)$ttl, PDO::PARAM_INT); |
|
187 | 187 | $stmt->bindValue(':cacheKey', $cacheKey); |
188 | 188 | $stmt->bindValue(':namespace', $namespace); |
189 | 189 | $stmt->bindValue(':currentTime', $currentTime); |