From d7cd7b4121c3d35bfca9087f0ada4247f780c050 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sun, 25 Sep 2022 02:55:30 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/WooCommerceAnalyticsApi.php | 102 ++++++++++++++++---------------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/src/WooCommerceAnalyticsApi.php b/src/WooCommerceAnalyticsApi.php index 0e016a6..f2a8b69 100644 --- a/src/WooCommerceAnalyticsApi.php +++ b/src/WooCommerceAnalyticsApi.php @@ -1,51 +1,51 @@ -headers = [ - 'header_total' => config('woocommerce.header_total') ?? 'X-WP-Total', - 'header_total_pages' => config('woocommerce.header_total_pages') ?? 'X-WP-TotalPages', - ]; - - $this->client = new Client( - config('woocommerce.store_url'), - config('woocommerce.consumer_key'), - config('woocommerce.consumer_secret'), - [ - 'version' => 'wc-analytics', - 'wp_api' => config('woocommerce.wp_api_integration'), - 'verify_ssl' => config('woocommerce.verify_ssl'), - 'query_string_auth' => config('woocommerce.query_string_auth'), - 'timeout' => config('woocommerce.timeout'), - ] - ); - } catch (\Exception $e) { - throw new \Exception($e->getMessage(), 1); - } - } -} +headers = [ + 'header_total' => config('woocommerce.header_total') ?? 'X-WP-Total', + 'header_total_pages' => config('woocommerce.header_total_pages') ?? 'X-WP-TotalPages', + ]; + + $this->client = new Client( + config('woocommerce.store_url'), + config('woocommerce.consumer_key'), + config('woocommerce.consumer_secret'), + [ + 'version' => 'wc-analytics', + 'wp_api' => config('woocommerce.wp_api_integration'), + 'verify_ssl' => config('woocommerce.verify_ssl'), + 'query_string_auth' => config('woocommerce.query_string_auth'), + 'timeout' => config('woocommerce.timeout'), + ] + ); + } catch (\Exception $e) { + throw new \Exception($e->getMessage(), 1); + } + } +}