From a8a5763b47ff9040e66a5f64facc56fed4fe1e20 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Fri, 18 Nov 2016 16:39:31 -0200 Subject: [PATCH] Removed extra ) --- includes/api/legacy/v1/class-wc-api-orders.php | 6 +++--- includes/api/legacy/v2/class-wc-api-orders.php | 8 ++++---- includes/api/legacy/v3/class-wc-api-orders.php | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/includes/api/legacy/v1/class-wc-api-orders.php b/includes/api/legacy/v1/class-wc-api-orders.php index de02ee53c64..4aeac9060a8 100644 --- a/includes/api/legacy/v1/class-wc-api-orders.php +++ b/includes/api/legacy/v1/class-wc-api-orders.php @@ -116,9 +116,9 @@ class WC_API_Orders extends WC_API_Resource { $order_data = array( 'id' => $order->get_id(), 'order_number' => $order->get_order_number(), - 'created_at' => $this->server->format_datetime( $order->get_date_created(), false, true ) ), - 'updated_at' => $this->server->format_datetime( $order->get_date_modified(), false, true ) ), - 'completed_at' => $this->server->format_datetime( $order->get_date_completed(), false, true ) ), + 'created_at' => $this->server->format_datetime( $order->get_date_created(), false, true ), + 'updated_at' => $this->server->format_datetime( $order->get_date_modified(), false, true ), + 'completed_at' => $this->server->format_datetime( $order->get_date_completed(), false, true ), 'status' => $order->get_status(), 'currency' => $order->get_currency(), 'total' => wc_format_decimal( $order->get_total(), 2 ), diff --git a/includes/api/legacy/v2/class-wc-api-orders.php b/includes/api/legacy/v2/class-wc-api-orders.php index c13804efe2a..8dc06a54d3a 100644 --- a/includes/api/legacy/v2/class-wc-api-orders.php +++ b/includes/api/legacy/v2/class-wc-api-orders.php @@ -156,9 +156,9 @@ class WC_API_Orders extends WC_API_Resource { $order_data = array( 'id' => $order->get_id(), 'order_number' => $order->get_order_number(), - 'created_at' => $this->server->format_datetime( $order->get_date_created(), false, true ) ), - 'updated_at' => $this->server->format_datetime( $order->get_date_modified(), false, true ) ), - 'completed_at' => $this->server->format_datetime( $order->get_date_completed(), false, true ) ), + 'created_at' => $this->server->format_datetime( $order->get_date_created(), false, true ), + 'updated_at' => $this->server->format_datetime( $order->get_date_modified(), false, true ), + 'completed_at' => $this->server->format_datetime( $order->get_date_completed(), false, true ), 'status' => $order->get_status(), 'currency' => $order->get_currency(), 'total' => wc_format_decimal( $order->get_total(), $dp ), @@ -1534,7 +1534,7 @@ class WC_API_Orders extends WC_API_Resource { $order_refund = array( 'id' => $refund->id, - 'created_at' => $this->server->format_datetime( $refund->get_date_created(), false, true ) ), + 'created_at' => $this->server->format_datetime( $refund->get_date_created(), false, true ), 'amount' => wc_format_decimal( $refund->get_amount(), 2 ), 'reason' => $refund->get_reason(), 'line_items' => $line_items, diff --git a/includes/api/legacy/v3/class-wc-api-orders.php b/includes/api/legacy/v3/class-wc-api-orders.php index 6947e560eba..498be287f41 100644 --- a/includes/api/legacy/v3/class-wc-api-orders.php +++ b/includes/api/legacy/v3/class-wc-api-orders.php @@ -162,9 +162,9 @@ class WC_API_Orders extends WC_API_Resource { 'id' => $order->get_id(), 'order_number' => $order->get_order_number(), 'order_key' => $order->get_order_key(), - 'created_at' => $this->server->format_datetime( $order->get_date_created(), false, true ) ), - 'updated_at' => $this->server->format_datetime( $order->get_date_modified(), false, true ) ), - 'completed_at' => $this->server->format_datetime( $order->get_date_completed(), false, true ) ), + 'created_at' => $this->server->format_datetime( $order->get_date_created(), false, true ), + 'updated_at' => $this->server->format_datetime( $order->get_date_modified(), false, true ), + 'completed_at' => $this->server->format_datetime( $order->get_date_completed(), false, true ), 'status' => $order->get_status(), 'currency' => $order->get_currency(), 'total' => wc_format_decimal( $order->get_total(), $dp ), @@ -1579,7 +1579,7 @@ class WC_API_Orders extends WC_API_Resource { $order_refund = array( 'id' => $refund->id, - 'created_at' => $this->server->format_datetime( $refund->get_date_created(), false, true ) ), + 'created_at' => $this->server->format_datetime( $refund->get_date_created(), false, true ), 'amount' => wc_format_decimal( $refund->get_amount(), 2 ), 'reason' => $refund->get_reason(), 'line_items' => $line_items,