From d0109d5a90e16608c0a95844d78c7880bf0f9517 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Fri, 11 Oct 2024 09:08:47 +0200 Subject: [PATCH] Fix cs --- src/Buttons/ApplePayButton/DataToAppleButtonScripts.php | 2 +- src/Shared/Data.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Buttons/ApplePayButton/DataToAppleButtonScripts.php b/src/Buttons/ApplePayButton/DataToAppleButtonScripts.php index fd10bf22..d3e37ab1 100644 --- a/src/Buttons/ApplePayButton/DataToAppleButtonScripts.php +++ b/src/Buttons/ApplePayButton/DataToAppleButtonScripts.php @@ -14,7 +14,7 @@ class DataToAppleButtonScripts */ public function applePayScriptData(bool $isBlock = false): array { - if(is_admin()) { + if (is_admin()) { return []; } $base_location = wc_get_base_location(); diff --git a/src/Shared/Data.php b/src/Shared/Data.php index 34daa67a..cf38fd51 100644 --- a/src/Shared/Data.php +++ b/src/Shared/Data.php @@ -788,7 +788,8 @@ protected function addRecurringPaymentMethods($apiKey, bool $testMode, bool $use return $result; } - public function mollieApplePayBlockDataCart() { + public function mollieApplePayBlockDataCart() + { $dataToScripts = new DataToAppleButtonScripts(); return $dataToScripts->applePayScriptData(true); }