@@ -15,6 +15,6 @@ |
||
| 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 |
@@ -15,7 +15,7 @@ |
||
| 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 | /** |
@@ -27,10 +27,10 @@ |
||
| 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; |