Skip to content

Commit 0abfc89

Browse files
committed
PHPCS: fix up the code base [8] - rename a local variable
Variable names should be in `snake_case`. As this is a function local variable, it can be safely renamed without BC.
1 parent 3e5b969 commit 0abfc89

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)