From b876331b5831899724fbe95e4d8e618ce9172918 Mon Sep 17 00:00:00 2001 From: ah-net <103565001+ah-net@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:34:01 +0100 Subject: [PATCH] Style fixes --- Model/Client/Request/AnalyticsRequest.php | 4 ++-- Observer/TweakwiseCheckout.php | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Model/Client/Request/AnalyticsRequest.php b/Model/Client/Request/AnalyticsRequest.php index 3423ea18..10abb1b7 100644 --- a/Model/Client/Request/AnalyticsRequest.php +++ b/Model/Client/Request/AnalyticsRequest.php @@ -38,7 +38,7 @@ public function getApiurl() } /** - * @return string + * @return void */ public function setProfileKey(string $profileKey) { @@ -46,7 +46,7 @@ public function setProfileKey(string $profileKey) } /** - * @return string + * @return void */ public function setPath($path) { diff --git a/Observer/TweakwiseCheckout.php b/Observer/TweakwiseCheckout.php index 04426fd1..2be13a8e 100644 --- a/Observer/TweakwiseCheckout.php +++ b/Observer/TweakwiseCheckout.php @@ -52,8 +52,6 @@ public function execute(Observer $observer) $this->sendCheckout($items); } - - return; } /** @@ -77,12 +75,12 @@ private function sendCheckout($items) $tweakwiseRequest->setParameterArray('ProductKeys', $productTwId); + // @phpcs:disable try { $this->client->request($tweakwiseRequest); } catch (\Exception $e) { // Do nothing so that the checkout process can continue - return; } - return; + // @phpcs:enable } }