Skip to content

Commit b2d374a

Browse files
Merge pull request #111 from jrfnl/feature/cs-fixes-8
PHPCS: fix up the code base [8] - rename a local variable
2 parents 8c49c7a + 0abfc89 commit b2d374a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Search_Replace_Command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,14 @@ public function __invoke( $args, $assoc_args ) {
367367
if ( ! $php_only && ! $this->regex ) {
368368
$col_sql = self::esc_sql_ident( $col );
369369
$wpdb->last_error = '';
370-
$serialRow = $wpdb->get_row( "SELECT * FROM $table_sql WHERE $col_sql REGEXP '^[aiO]:[1-9]' LIMIT 1" );
370+
$serial_row = $wpdb->get_row( "SELECT * FROM $table_sql WHERE $col_sql REGEXP '^[aiO]:[1-9]' LIMIT 1" );
371371
// When the regex triggers an error, we should fall back to PHP
372372
if ( false !== strpos( $wpdb->last_error, 'ERROR 1139' ) ) {
373-
$serialRow = true;
373+
$serial_row = true;
374374
}
375375
}
376376

377-
if ( $php_only || $this->regex || null !== $serialRow ) {
377+
if ( $php_only || $this->regex || null !== $serial_row ) {
378378
$type = 'PHP';
379379
$count = $this->php_handle_col( $col, $primary_keys, $table, $old, $new );
380380
} else {

0 commit comments

Comments
 (0)