Passed
Push — master ( 31906f...d3ca84 )
by Robson
01:44
created
example/Models/UserDatabase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
      */
16 16
     public function __construct()
17 17
     {
18
-        parent::__construct("ws_users", ["user_name", "user_lastname"], "user_id", false, DATABASE);
18
+        parent::__construct("ws_users", [ "user_name", "user_lastname" ], "user_id", false, DATABASE);
19 19
     }
20 20
 }
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
example/Models/Address.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 function __construct()
17 17
     {
18
-        parent::__construct("adresses", ["user_id"]);
18
+        parent::__construct("adresses", [ "user_id" ]);
19 19
     }
20 20
 
21 21
     /**
Please login to merge, or discard this patch.
src/Connect.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
             $db = $database ?? DATA_LAYER_CONFIG;
28 28
             try {
29 29
                 self::$instance = new PDO(
30
-                    $db["driver"] . ":host=" . $db["host"] . ";dbname=" . $db["dbname"] . ";port=" . $db["port"],
31
-                    $db["username"],
32
-                    $db["passwd"],
33
-                    $db["options"]
30
+                    $db[ "driver" ] . ":host=" . $db[ "host" ] . ";dbname=" . $db[ "dbname" ] . ";port=" . $db[ "port" ],
31
+                    $db[ "username" ],
32
+                    $db[ "passwd" ],
33
+                    $db[ "options" ]
34 34
                 );
35 35
             } catch (PDOException $exception) {
36 36
                 self::$error = $exception;
Please login to merge, or discard this patch.