Skip to content

Commit 0e84308

Browse files
committed
Remove errant whitespace
1 parent 8f5b76b commit 0e84308

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/DB_Command.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,11 @@ public function query( $args, $assoc_args ) {
498498
$command = sprintf( '/usr/bin/env mysql%s --no-auto-rehash', $this->get_defaults_flag_string( $assoc_args ) );
499499
WP_CLI::debug( "Running shell command: {$command}", 'db' );
500500
$assoc_args['database'] = DB_NAME;
501-
501+
502502
if ( ! empty( $args ) ) {
503503
$assoc_args['execute'] = $args[0];
504504
}
505-
505+
506506
if ( isset( $assoc_args['execute'] ) ) {
507507
$assoc_args['execute'] = $this->get_sql_mode_query( $assoc_args ) . $assoc_args['execute'];
508508
}
@@ -512,14 +512,14 @@ public function query( $args, $assoc_args ) {
512512
// Append `SELECT ROW_COUNT()` to the query.
513513
$assoc_args['execute'] .= '; SELECT ROW_COUNT();';
514514
}
515-
515+
516516
WP_CLI::debug( 'Associative arguments: ' . json_encode( $assoc_args ), 'db' );
517517
list( $stdout, $stderr, $exit_code ) = self::run( $command, $assoc_args, false );
518-
518+
519519
if ( $exit_code ) {
520520
WP_CLI::error( "Query failed: {$stderr}" );
521521
}
522-
522+
523523
// For UPDATE/DELETE queries, parse the output to get the number of rows affected.
524524
if ( isset( $assoc_args['execute'] ) && preg_match( '/\b(UPDATE|DELETE|INSERT)\b/i', $assoc_args['execute'] ) ) {
525525
$output_lines = explode( "\n", trim( $stdout ) );

0 commit comments

Comments
 (0)