Passed
Push — main ( 72c6fa...9344f0 )
by Sílvio
02:59
created
src/Exceptions/CacheDatabaseException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
   */
16 16
   public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = [])
17 17
   {
18
-    return new self(self::getBefore() . ": " .$message, $code, $previous, $details);
18
+    return new self(self::getBefore() . ": " . $message, $code, $previous, $details);
19 19
   }
20 20
 
21 21
 
Please login to merge, or discard this patch.
src/Exceptions/ConnectionException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
   */
16 16
   public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = [])
17 17
   {
18
-    return new self(self::getBefore() . ": " .$message, $code, $previous, $details);
18
+    return new self(self::getBefore() . ": " . $message, $code, $previous, $details);
19 19
   }
20 20
 
21 21
   /**
Please login to merge, or discard this patch.
src/Exceptions/CacheFileException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
   */
16 16
   public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = [])
17 17
   {
18
-    return new self(self::getBefore() . ": " .$message, $code, $previous, $details);
18
+    return new self(self::getBefore() . ": " . $message, $code, $previous, $details);
19 19
   }
20 20
 
21 21
 
Please login to merge, or discard this patch.
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
         $expirationTime = date('Y-m-d H:i:s', time() + $ttl);
35 35
         $createdAt = date('Y-m-d H:i:s');
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     * @param string $namespace
111 111
     * @return bool
112 112
     */
113
-    public function renew(string $cacheKey, string|int $ttl, string $namespace = '')
113
+    public function renew(string $cacheKey, string | int $ttl, string $namespace = '')
114 114
     {
115 115
         $currentTime = date('Y-m-d H:i:s');
116 116
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                 SET expirationTime = DATE_ADD(expirationTime, INTERVAL ? SECOND)
131 131
                 WHERE cacheKey = ? AND cacheNamespace = ? AND expirationTime > ?"
132 132
             );
133
-            $stmt->bindValue(1, (int) $ttl, PDO::PARAM_INT);
133
+            $stmt->bindValue(1, (int)$ttl, PDO::PARAM_INT);
134 134
             $stmt->bindValue(2, $cacheKey);
135 135
             $stmt->bindValue(3, $namespace);
136 136
             $stmt->bindValue(4, $currentTime);
Please login to merge, or discard this patch.