Skip to content

Commit

Permalink
PHPCS: whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JJJ committed Jun 18, 2024
1 parent 440fcea commit 289186a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ludicrousdb/includes/class-ludicrousdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 289186a

Please sign in to comment.