Passed
Push — main ( 72c6fa...9344f0 )
by Sílvio
02:59
created
src/CacheStore/FileCacheStore.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,13 +46,13 @@
 block discarded – undo
46 46
     private string $lastFlushTimeFile;
47 47
 
48 48
     /**
49
-    * @var CacheLogger
50
-    */
49
+     * @var CacheLogger
50
+     */
51 51
     private $logger = null;
52 52
 
53 53
     /**
54
-    * @var FileCacheManager
55
-    */
54
+     * @var FileCacheManager
55
+     */
56 56
     private FileCacheManager $fileManager;
57 57
 
58 58
     public function __construct(array $options = [])
Please login to merge, or discard this patch.
src/Core/ConnectionFactory.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
     /**
18
-      * @param array|null $database
19
-      * @return PDO|null
20
-    */
18
+     * @param array|null $database
19
+     * @return PDO|null
20
+     */
21 21
     public static function createConnection(array $database = null)
22 22
     {
23 23
         $dbConf = $database ?? CACHEER_DATABASE_CONFIG[Connect::getConnection()];
Please login to merge, or discard this patch.
src/Core/Connect.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 
19 19
 
20 20
     /**
21
-    * @param array|null $database
22
-    * @return PDO|null
23
-    */
21
+     * @param array|null $database
22
+     * @return PDO|null
23
+     */
24 24
     public static function getInstance(array $database = null)
25 25
     {
26 26
         $pdo = ConnectionFactory::createConnection($database);
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
     }
32 32
 
33 33
     /**
34
-    * @param string $connection
35
-    * @return void
36
-    */
34
+     * @param string $connection
35
+     * @return void
36
+     */
37 37
     public static function setConnection(string $connection)
38 38
     {
39 39
         $drivers = ['mysql', 'sqlite', 'pgsql'];
@@ -44,16 +44,16 @@  discard block
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-    * @return string
48
-    */
47
+     * @return string
48
+     */
49 49
     public static function getConnection()
50 50
     {
51 51
         return self::$connection;
52 52
     }
53 53
 
54 54
     /**
55
-    * @return PDOException|null
56
-    */
55
+     * @return PDOException|null
56
+     */
57 57
     public static function getError()
58 58
     {
59 59
         return self::$error;
Please login to merge, or discard this patch.
src/Core/MigrationManager.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 class MigrationManager
14 14
 {
15 15
     /**
16
-    * @return void
17
-    */
16
+     * @return void
17
+     */
18 18
     public static function migrate(PDO $connection)
19 19
     {
20 20
         $driver = $connection->getAttribute(PDO::ATTR_DRIVER_NAME);
Please login to merge, or discard this patch.
src/Exceptions/CacheRedisException.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@
 block discarded – undo
8 8
 {
9 9
 
10 10
 
11
-  /** @param string $before */
12
-  private static string $before = "<Redis Cache Store Exception>";
11
+    /** @param string $before */
12
+    private static string $before = "<Redis Cache Store Exception>";
13 13
 
14 14
 
15 15
     /**
16
-  * @return void
17
-  */
18
-  public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = [])
19
-  {
16
+     * @return void
17
+     */
18
+    public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = [])
19
+    {
20 20
     return new self(self::getBefore() . ": " .$message, $code, $previous, $details);
21
-  }
21
+    }
22 22
 
23 23
 
24
-  /**
25
-  * @return string
26
-  */
27
-  public static function getBefore()
28
-  {
24
+    /**
25
+     * @return string
26
+     */
27
+    public static function getBefore()
28
+    {
29 29
     return self::$before;
30
-  }
30
+    }
31 31
 
32
-  /**
33
-  * @return void
34
-  */
35
-  public static function setBefore(string $text)
36
-  {
32
+    /**
33
+     * @return void
34
+     */
35
+    public static function setBefore(string $text)
36
+    {
37 37
     self::$before = $text;
38
-  }
38
+    }
39 39
 
40 40
 }
41 41
 
Please login to merge, or discard this patch.
src/Exceptions/CacheDatabaseException.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -7,32 +7,32 @@
 block discarded – undo
7 7
 class CacheDatabaseException extends BaseException
8 8
 {
9 9
 
10
-  /** @param string $before */
11
-  private static string $before = "<Database Cache Store Exception>";
12
-
13
-  /**
14
-  * @return void
15
-  */
16
-  public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = [])
17
-  {
10
+    /** @param string $before */
11
+    private static string $before = "<Database Cache Store Exception>";
12
+
13
+    /**
14
+     * @return void
15
+     */
16
+    public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = [])
17
+    {
18 18
     return new self(self::getBefore() . ": " .$message, $code, $previous, $details);
19
-  }
19
+    }
20 20
 
21 21
 
22
-  /**
23
-  * @return string
24
-  */
25
-  public static function getBefore()
26
-  {
22
+    /**
23
+     * @return string
24
+     */
25
+    public static function getBefore()
26
+    {
27 27
     return self::$before;
28
-  }
28
+    }
29 29
 
30
-  /**
31
-  * @return void
32
-  */
33
-  public static function setBefore(string $text)
34
-  {
30
+    /**
31
+     * @return void
32
+     */
33
+    public static function setBefore(string $text)
34
+    {
35 35
     self::$before = $text;
36
-  }
36
+    }
37 37
 
38 38
 }
Please login to merge, or discard this patch.
src/Exceptions/ConnectionException.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -7,31 +7,31 @@
 block discarded – undo
7 7
 class ConnectionException extends BaseException
8 8
 {
9 9
 
10
-  /** @param string $before */
11
-  private static string $before = "<Connection Exception>";
12
-
13
-  /**
14
-  * @return void
15
-  */
16
-  public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = [])
17
-  {
10
+    /** @param string $before */
11
+    private static string $before = "<Connection Exception>";
12
+
13
+    /**
14
+     * @return void
15
+     */
16
+    public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = [])
17
+    {
18 18
     return new self(self::getBefore() . ": " .$message, $code, $previous, $details);
19
-  }
19
+    }
20 20
 
21
-  /**
22
-  * @return string
23
-  */
24
-  public static function getBefore()
25
-  {
21
+    /**
22
+     * @return string
23
+     */
24
+    public static function getBefore()
25
+    {
26 26
     return self::$before;
27
-  }
27
+    }
28 28
 
29
-  /**
30
-  * @return void
31
-  */
32
-  public static function setBefore(string $text)
33
-  {
29
+    /**
30
+     * @return void
31
+     */
32
+    public static function setBefore(string $text)
33
+    {
34 34
     self::$before = $text;
35
-  }
35
+    }
36 36
 
37 37
 }
Please login to merge, or discard this patch.
src/Exceptions/CacheFileException.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -7,33 +7,33 @@
 block discarded – undo
7 7
 class CacheFileException extends BaseException
8 8
 {
9 9
 
10
-  /** @param string $before */
11
-  private static string $before = "<File Cache Store Exception>";
12
-
13
-  /**
14
-  * @return void
15
-  */
16
-  public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = [])
17
-  {
10
+    /** @param string $before */
11
+    private static string $before = "<File Cache Store Exception>";
12
+
13
+    /**
14
+     * @return void
15
+     */
16
+    public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = [])
17
+    {
18 18
     return new self(self::getBefore() . ": " .$message, $code, $previous, $details);
19
-  }
19
+    }
20 20
 
21 21
 
22
-  /**
23
-  * @return string
24
-  */
25
-  public static function getBefore()
26
-  {
22
+    /**
23
+     * @return string
24
+     */
25
+    public static function getBefore()
26
+    {
27 27
     return self::$before;
28
-  }
28
+    }
29 29
 
30
-  /**
31
-  * @return void
32
-  */
33
-  public static function setBefore(string $text)
34
-  {
30
+    /**
31
+     * @return void
32
+     */
33
+    public static function setBefore(string $text)
34
+    {
35 35
     self::$before = $text;
36
-  }
36
+    }
37 37
 
38 38
 }
39 39
 
Please login to merge, or discard this patch.
src/Repositories/CacheDatabaseRepository.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -48,10 +48,10 @@  discard block
 block discarded – undo
48 48
     }
49 49
 
50 50
     /**
51
-    * @param string $cacheKey
52
-    * @param string $namespace
53
-    * @return mixed
54
-    */
51
+     * @param string $cacheKey
52
+     * @param string $namespace
53
+     * @return mixed
54
+     */
55 55
     public function retrieve(string $cacheKey, string $namespace = '')
56 56
     {
57 57
         $driver = $this->connection->getAttribute(PDO::ATTR_DRIVER_NAME);
@@ -105,11 +105,11 @@  discard block
 block discarded – undo
105 105
     }
106 106
 
107 107
     /**
108
-    * @param string $cacheKey
109
-    * @param string|int $ttl
110
-    * @param string $namespace
111
-    * @return bool
112
-    */
108
+     * @param string $cacheKey
109
+     * @param string|int $ttl
110
+     * @param string $namespace
111
+     * @return bool
112
+     */
113 113
     public function renew(string $cacheKey, string|int $ttl, string $namespace = '')
114 114
     {
115 115
         $currentTime = date('Y-m-d H:i:s');
@@ -163,9 +163,9 @@  discard block
 block discarded – undo
163 163
     }
164 164
 
165 165
     /**
166
-    * @param string $driver
167
-    * @return string
168
-    */
166
+     * @param string $driver
167
+     * @return string
168
+     */
169 169
     private function getCurrentDateTime(string $driver)
170 170
     {
171 171
         return ($driver === 'sqlite') ? "DATETIME('now', 'localtime')" : "NOW()";
Please login to merge, or discard this patch.