From 03bb1175ea23f7a418449b9cd36521ecb186a98e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Wytr=C4=99bowicz?= Date: Fri, 8 Mar 2024 21:59:42 +0100 Subject: [PATCH] Fix PHPCS --- includes/class-wc-abstract-google-analytics-js.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-wc-abstract-google-analytics-js.php b/includes/class-wc-abstract-google-analytics-js.php index 905598a5..ed0d3e43 100644 --- a/includes/class-wc-abstract-google-analytics-js.php +++ b/includes/class-wc-abstract-google-analytics-js.php @@ -264,12 +264,12 @@ public function get_formatted_order( $order ): array { } return array( - 'totals' => array( + 'totals' => array( 'currency_code' => $order->get_currency(), 'total_price' => $this->get_formatted_price( $order->get_total() ), 'currency_minor_unit' => wc_get_price_decimals(), ), - 'items' => array_map( + 'items' => array_map( function ( $item ) { return array_merge( $this->get_formatted_product( $item->get_product() ),