mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
fix phpcs
This commit is contained in:
parent
5959ea71a2
commit
55b7587938
3 changed files with 4 additions and 3 deletions
|
@ -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 {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -189,7 +189,8 @@ class GooglePayGateway extends WC_Payment_Gateway {
|
||||||
}
|
}
|
||||||
//phpcs:enable WordPress.Security.NonceVerification.Recommended
|
//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 {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -185,7 +185,7 @@ class SettingsModule implements ServiceModule, ExecutableModule {
|
||||||
'wcPaymentsTabUrl' => admin_url( 'admin.php?page=wc-settings&tab=checkout' ),
|
'wcPaymentsTabUrl' => admin_url( 'admin.php?page=wc-settings&tab=checkout' ),
|
||||||
'debug' => defined( 'WP_DEBUG' ) && WP_DEBUG,
|
'debug' => defined( 'WP_DEBUG' ) && WP_DEBUG,
|
||||||
'isPayLaterConfiguratorAvailable' => $is_pay_later_configurator_available,
|
'isPayLaterConfiguratorAvailable' => $is_pay_later_configurator_available,
|
||||||
'storeCountry' => $container->get( 'wcgateway.store-country' ),
|
'storeCountry' => $container->get( 'wcgateway.store-country' ),
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( $is_pay_later_configurator_available ) {
|
if ( $is_pay_later_configurator_available ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue