From 55b758793818f5462a19d47117b933b76ad1a2fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=BCsken?= Date: Tue, 4 Feb 2025 09:54:25 +0100 Subject: [PATCH] fix phpcs --- modules/ppcp-applepay/src/ApplePayGateway.php | 2 +- modules/ppcp-googlepay/src/GooglePayGateway.php | 3 ++- modules/ppcp-settings/src/SettingsModule.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/ppcp-applepay/src/ApplePayGateway.php b/modules/ppcp-applepay/src/ApplePayGateway.php index cdbabde9f..857144038 100644 --- a/modules/ppcp-applepay/src/ApplePayGateway.php +++ b/modules/ppcp-applepay/src/ApplePayGateway.php @@ -180,7 +180,7 @@ class ApplePayGateway extends WC_Payment_Gateway { ); } - do_action_deprecated('woocommerce_paypal_payments_before_process_order', [ $wc_order ], '2.9.7', 'woocommerce_paypal_payments_before_order_process', __( 'Usage of this action is deprecated. Please use the filter woocommerce_paypal_payments_before_order_process instead. ', 'woocommerce-paypal-payments' ) ); + do_action_deprecated( 'woocommerce_paypal_payments_before_process_order', array( $wc_order ), '2.9.7', 'woocommerce_paypal_payments_before_order_process', __( 'Usage of this action is deprecated. Please use the filter woocommerce_paypal_payments_before_order_process instead.', 'woocommerce-paypal-payments' ) ); try { try { diff --git a/modules/ppcp-googlepay/src/GooglePayGateway.php b/modules/ppcp-googlepay/src/GooglePayGateway.php index 36ddc580a..725ffe5a2 100644 --- a/modules/ppcp-googlepay/src/GooglePayGateway.php +++ b/modules/ppcp-googlepay/src/GooglePayGateway.php @@ -189,7 +189,8 @@ class GooglePayGateway extends WC_Payment_Gateway { } //phpcs:enable WordPress.Security.NonceVerification.Recommended - do_action_deprecated('woocommerce_paypal_payments_before_process_order', [ $wc_order ], '2.9.7', 'woocommerce_paypal_payments_before_order_process', __( 'Usage of this action is deprecated. Please use the filter woocommerce_paypal_payments_before_order_process instead. ', 'woocommerce-paypal-payments' ) ); + do_action_deprecated( 'woocommerce_paypal_payments_before_process_order', array( $wc_order ), '2.9.7', 'woocommerce_paypal_payments_before_order_process', __( 'Usage of this action is deprecated. Please use the filter woocommerce_paypal_payments_before_order_process instead.', 'woocommerce-paypal-payments' ) ); + try { try { diff --git a/modules/ppcp-settings/src/SettingsModule.php b/modules/ppcp-settings/src/SettingsModule.php index 742f0527c..f0fbbdf57 100644 --- a/modules/ppcp-settings/src/SettingsModule.php +++ b/modules/ppcp-settings/src/SettingsModule.php @@ -185,7 +185,7 @@ class SettingsModule implements ServiceModule, ExecutableModule { 'wcPaymentsTabUrl' => admin_url( 'admin.php?page=wc-settings&tab=checkout' ), 'debug' => defined( 'WP_DEBUG' ) && WP_DEBUG, 'isPayLaterConfiguratorAvailable' => $is_pay_later_configurator_available, - 'storeCountry' => $container->get( 'wcgateway.store-country' ), + 'storeCountry' => $container->get( 'wcgateway.store-country' ), ); if ( $is_pay_later_configurator_available ) {