From 289186ac6ab0ddea480fc1b483f74d81703855a6 Mon Sep 17 00:00:00 2001 From: John James Jacoby Date: Tue, 18 Jun 2024 15:32:19 -0500 Subject: [PATCH] PHPCS: whitespace cleanup --- ludicrousdb/includes/class-ludicrousdb.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ludicrousdb/includes/class-ludicrousdb.php b/ludicrousdb/includes/class-ludicrousdb.php index 40c9c94..c10395b 100644 --- a/ludicrousdb/includes/class-ludicrousdb.php +++ b/ludicrousdb/includes/class-ludicrousdb.php @@ -352,7 +352,7 @@ public function add_database( array $db = array() ) { ); // Merge using defaults - $db = array_merge( $database_defaults, $db ); + $db = array_merge( $database_defaults, $db ); // Break these apart to make code easier to understand below $dataset = $db['dataset']; @@ -876,9 +876,12 @@ public function db_connect( $query = '' ) { $this->print_error( $msg ); } - if ( empty( $success ) - || ! isset( $this->dbhs[ $dbhname ] ) - || ! $this->dbh_type_check( $this->dbhs[ $dbhname ] ) + if ( + empty( $success ) + || + ! isset( $this->dbhs[ $dbhname ] ) + || + ! $this->dbh_type_check( $this->dbhs[ $dbhname ] ) ) { // Lagged slaves were not used. Ignore the lag for this connection attempt and retry.