diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2025-08-13 10:45:10 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2025-08-13 10:46:40 +0200 |
commit | beb68ad3ddc48f9e913815e0e18f11965201f32e (patch) | |
tree | c8f3cdabedb6f2635bd0f5378bc5e426ba8c5f65 /src/DB.php | |
parent | 6b7e857f21bef9ba71ac36c202678ec0d84eeff5 (diff) |
whitespace :]
Diffstat (limited to 'src/DB.php')
-rw-r--r-- | src/DB.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5,9 +5,9 @@ namespace App; class DB { use Singleton; - + private \PDO $connection; - + public function __construct() { $driver = $_ENV['DB_DRIVER'] ?? 'pgsql'; @@ -16,7 +16,7 @@ class DB $dbname = $_ENV['DB_NAME']; $user = $_ENV['DB_USER']; $password = $_ENV['DB_PASSWORD']; - + $this->connection = new \PDO("$driver:host=$host;port=$port;dbname=$dbname", $user, $password); } } |