Skip to content
This repository was archived by the owner on Jun 15, 2022. It is now read-only.

Commit 05d6af5

Browse files
committed
Equal and => operator alignment for the sake of coding standards (whitespace only)
1 parent 3f891f7 commit 05d6af5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

includes/class-wc-order-data-store-custom-table.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -407,12 +407,12 @@ public function get_orders( $args = array() ) {
407407
$wc_customer_query = array();
408408

409409
if ( ! empty( $args['customer'] ) ) {
410-
$values = is_array( $args['customer'] ) ? $args['customer'] : array( $args['customer'] );
410+
$values = is_array( $args['customer'] ) ? $args['customer'] : array( $args['customer'] );
411411
$wc_customer_query = array_merge( $wc_customer_query, $values );
412412
}
413413

414414
if ( ! empty( $args['email'] ) ) {
415-
$values = is_array( $args['email'] ) ? $args['email'] : array( $args['email'] );
415+
$values = is_array( $args['email'] ) ? $args['email'] : array( $args['email'] );
416416
$wc_customer_query = array_merge( $wc_customer_query, $values );
417417
}
418418

@@ -486,13 +486,13 @@ public function get_orders( $args = array() ) {
486486
*/
487487
private function get_orders_generate_customer_meta_query( $values, $relation = 'or' ) {
488488
$meta_query = array(
489-
'relation' => strtoupper( $relation ),
489+
'relation' => strtoupper( $relation ),
490490
'customer_emails' => array(
491491
'key' => '_billing_email',
492492
'value' => array(),
493493
'compare' => 'IN',
494494
),
495-
'customer_ids' => array(
495+
'customer_ids' => array(
496496
'key' => '_customer_user',
497497
'value' => array(),
498498
'compare' => 'IN',
@@ -717,7 +717,7 @@ public function populate_from_meta( &$order, $save = true, $delete = false ) {
717717

718718
if ( is_null( $table_data ) ) {
719719
$original_creating = $this->creating;
720-
$this->creating = true;
720+
$this->creating = true;
721721
}
722722

723723
foreach ( $this->get_postmeta_mapping() as $column => $meta_key ) {
@@ -781,8 +781,8 @@ public function query( $query_vars ) {
781781

782782
if ( ! empty( $args['errors'] ) ) {
783783
$query = (object) array(
784-
'posts' => array(),
785-
'found_posts' => 0,
784+
'posts' => array(),
785+
'found_posts' => 0,
786786
'max_num_pages' => 0,
787787
);
788788
} else {

0 commit comments

Comments
 (0)