From e9c3fd84dd294260170f8536f9a72f99a18ec98f Mon Sep 17 00:00:00 2001 From: Joey Kimsey Date: Fri, 20 Jun 2025 11:29:47 -0400 Subject: [PATCH] small cleanup --- classes/database.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/classes/database.php b/classes/database.php index 4206af5..59999e3 100644 --- a/classes/database.php +++ b/classes/database.php @@ -91,14 +91,19 @@ class Database { $this->errorMessage = $Exception->getMessage(); } } - if ( !$this->enabled() ) { + if ( ! $this->enabled() ) { $this->error = true; $this->errorMessage = 'Database disabled in config.'; } if ( $this->error === false ) { try { Debug::debug( 'Attempting to connect to DB with config credentials.' ); - $this->pdo = new PDO( 'mysql:host=' . Config::getValue( 'database/dbHost' ) . ';dbname=' . Config::getValue( 'database/dbName' ), Config::getValue( 'database/dbUsername' ), Config::getValue( 'database/dbPassword' ) ); + $this->pdo = new PDO( + 'mysql:host=' . Config::getValue( 'database/dbHost' ) . + ';dbname=' . Config::getValue( 'database/dbName' ), + Config::getValue( 'database/dbUsername' ), + Config::getValue( 'database/dbPassword' ) + ); } catch ( PDOException $Exception ) { $this->error = true; $this->errorMessage = $Exception->getMessage();