From 5d86b2f00196e1e598ef16d4ec3461d26bf3a9d4 Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Tue, 9 May 2017 14:55:39 -0700 Subject: [PATCH] Formatting --- includes/data-stores/class-wc-data-store-wp.php | 8 ++++---- includes/data-stores/class-wc-order-data-store-cpt.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/data-stores/class-wc-data-store-wp.php b/includes/data-stores/class-wc-data-store-wp.php index 16c668dbb23..5b010885c87 100644 --- a/includes/data-stores/class-wc-data-store-wp.php +++ b/includes/data-stores/class-wc-data-store-wp.php @@ -208,7 +208,7 @@ class WC_Data_Store_WP { 'meta_query' => array(), ); - foreach( $query_vars as $key => $value ) { + foreach ( $query_vars as $key => $value ) { if ( in_array( $value, $skipped_values, true ) || 'meta_query' === $key ) { continue; } @@ -222,7 +222,7 @@ class WC_Data_Store_WP { ); // Other vars get mapped to wp_query args or just left alone. } else { - $key_mapping = array ( + $key_mapping = array( 'parent' => 'post_parent', 'parent_exclude' => 'post_parent__not_in', 'exclude' => 'post__not_in', @@ -315,7 +315,7 @@ class WC_Data_Store_WP { $query_arg['after']['minute'] = $end_date->date( 'i' ); $query_arg['after']['second'] = $end_date->date( 's' ); } - } elseif( '<' == $operator || '<=' == $operator ) { + } elseif ( '<' == $operator || '<=' == $operator ) { $query_arg['before'] = array( 'year' => $end_date->date( 'Y' ), 'month' => $end_date->date( 'n' ), @@ -325,7 +325,7 @@ class WC_Data_Store_WP { $query_arg['before']['minute'] = $end_date->date( 'i' ); $query_arg['before']['second'] = $end_date->date( 's' ); } - } elseif( '...' == $operator ) { + } elseif ( '...' == $operator ) { $query_arg['after'] = array( 'year' => $start_date->date( 'Y' ), 'month' => $start_date->date( 'n' ), diff --git a/includes/data-stores/class-wc-order-data-store-cpt.php b/includes/data-stores/class-wc-order-data-store-cpt.php index 63961d18b70..8cd9e0fe1d0 100644 --- a/includes/data-stores/class-wc-order-data-store-cpt.php +++ b/includes/data-stores/class-wc-order-data-store-cpt.php @@ -649,7 +649,7 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement 'status' => 'post_status', ); - foreach( $key_mapping as $query_key => $db_key ) { + foreach ( $key_mapping as $query_key => $db_key ) { if ( isset( $query_vars[ $query_key ] ) ) { $query_vars[ $db_key ] = $query_vars[ $query_key ]; unset( $query_vars[ $query_key ] );