Skip to content

Commit

Permalink
Code formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisnissle committed Jan 17, 2024
1 parent 642aaa8 commit 339c8d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ShipmentQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ protected function prepare_query() {

// order id
if ( isset( $this->args['order_id'] ) ) {
$order_ids = array_map( 'absint', $this->args['order_id'] );
$placeholders = implode( ',', array_fill( 0, count( $order_ids ), '%d' ) );
$this->query_where .= $wpdb->prepare( " AND shipment_order_id IN ({$placeholders})", ...$order_ids );
$order_ids = array_filter( array_map( 'absint', $this->args['order_id'] ) );
$placeholders = implode( ',', array_fill( 0, count( $order_ids ), '%d' ) );
$this->query_where .= $wpdb->prepare( " AND shipment_order_id IN ({$placeholders})", ...$order_ids ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.PreparedSQLPlaceholders.UnfinishedPrepare
}

// order id
Expand Down

0 comments on commit 339c8d8

Please sign in to comment.