Skip to content

Commit a821c3d

Browse files
committed
Lint fixes
1 parent 363b893 commit a821c3d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/Search_Replace_Command.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,10 +1298,12 @@ private function develop_where_specs( $str_specs ) {
12981298
$clauses = [];
12991299
foreach ( $specs as $spec ) {
13001300
$parts = array_map( 'trim', explode( ':', $spec, 3 ) );
1301-
if ( count( $parts ) < 3 ) continue;
1301+
if ( count( $parts ) < 3 ) {
1302+
continue;
1303+
}
13021304
list( $tables, $cols, $conditions ) = $parts;
1303-
$tables = array_filter( array_map( 'trim', explode( ',', $tables ) ) );
1304-
$cols = array_filter( array_map( 'trim', explode( ',', $cols ) ) ) ?: ['*'];
1305+
$tables = array_filter( array_map( 'trim', explode( ',', $tables ) ) );
1306+
$cols = array_filter( array_map( 'trim', explode( ',', $cols ) ) ) ?: [ '*' ];
13051307
foreach ( $tables as $table ) {
13061308
foreach ( $cols as $col ) {
13071309
$clauses[ empty( $wpdb->{$table} ) ? $table : $wpdb->{$table} ][ $col ][] = $conditions;

0 commit comments

Comments
 (0)