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); }