Passed
Push — main ( e82f34...7054df )
by Sílvio
05:01 queued 02:07
created
src/Repositories/CacheDatabaseRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.