Passed
Push — main ( d40bf0...e9466e )
by Sílvio
03:08 queued 16s
created
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/Config/Option/Builder/OptionBuilder.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
  */
12 12
 class OptionBuilder
13 13
 {
14
-  /**
15
-  * @return FileOptionBuilder
16
-  */
17
-  public static function forFile() 
18
-  {
14
+    /**
15
+     * @return FileOptionBuilder
16
+     */
17
+    public static function forFile() 
18
+    {
19 19
     return new FileOptionBuilder();
20
-  }
20
+    }
21 21
 }
Please login to merge, or discard this patch.
src/Utils/CacheDriver.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
     }
66 66
 
67 67
     /**
68
-    * @return Cacheer
69
-    */
68
+     * @return Cacheer
69
+     */
70 70
     public function useArrayDriver()
71 71
     {
72 72
         $this->cacheer->cacheStore = new ArrayCacheStore($this->logPath);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
     /**
77 77
      * @return Cacheer
78
-    */
78
+     */
79 79
     public function useDefaultDriver()
80 80
     {
81 81
         if (!isset($this->cacheer->options['cacheDir'])) {
@@ -92,14 +92,14 @@  discard block
 block discarded – undo
92 92
     }
93 93
 
94 94
     /**
95
-    * @param mixed $dirName
96
-    * @return bool
97
-    */
95
+     * @param mixed $dirName
96
+     * @return bool
97
+     */
98 98
     private function isDir(mixed $dirName)
99 99
     {
100
-      if (is_dir($dirName)) {
101
-          return true;
102
-      }
103
-      return mkdir($dirName, 0755, true);
100
+        if (is_dir($dirName)) {
101
+            return true;
102
+        }
103
+        return mkdir($dirName, 0755, true);
104 104
     }
105 105
 }
Please login to merge, or discard this patch.