diff --git a/modules/ppcp-applepay/src/Assets/DataToAppleButtonScripts.php b/modules/ppcp-applepay/src/Assets/DataToAppleButtonScripts.php index 420f75025..e7317fc5d 100644 --- a/modules/ppcp-applepay/src/Assets/DataToAppleButtonScripts.php +++ b/modules/ppcp-applepay/src/Assets/DataToAppleButtonScripts.php @@ -69,14 +69,13 @@ class DataToAppleButtonScripts { ); } - /** * Returns the appropriate admin data to send to ApplePay script * * @return array * @throws NotFoundException When the setting is not found. */ - public function apple_pay_script_data_for_admin(): array { + public function apple_pay_script_data_for_admin() : array { $base_location = wc_get_base_location(); $shop_country_code = $base_location['country']; $currency_code = get_woocommerce_currency(); @@ -254,7 +253,7 @@ class DataToAppleButtonScripts { return array( 'sdk_url' => $this->sdk_url, - 'is_debug' => defined( 'WP_DEBUG' ) && WP_DEBUG ? true : false, + 'is_debug' => defined( 'WP_DEBUG' ) && WP_DEBUG, 'is_admin' => true, 'is_enabled' => $is_enabled, 'preferences' => array( diff --git a/modules/ppcp-googlepay/src/Assets/Button.php b/modules/ppcp-googlepay/src/Assets/Button.php index 2e95250ca..8ad4163ab 100644 --- a/modules/ppcp-googlepay/src/Assets/Button.php +++ b/modules/ppcp-googlepay/src/Assets/Button.php @@ -422,7 +422,7 @@ class Button implements ButtonInterface { return array( 'environment' => $this->environment->current_environment_is( Environment::SANDBOX ) ? 'TEST' : 'PRODUCTION', - 'is_debug' => defined( 'WP_DEBUG' ) && WP_DEBUG ? true : false, + 'is_debug' => defined( 'WP_DEBUG' ) && WP_DEBUG, 'is_enabled' => $is_enabled, 'sdk_url' => $this->sdk_url, 'button' => array(