From 842506e55476c24bb6a7420f5e06d82cb5a4ec0b Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Thu, 3 Apr 2025 11:06:36 +0200 Subject: [PATCH] Fix phpcs --- modules/ppcp-axo/src/AxoModule.php | 28 +++++++++---------- .../ppcp-button/src/Helper/ThreeDSecure.php | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/modules/ppcp-axo/src/AxoModule.php b/modules/ppcp-axo/src/AxoModule.php index 9e57fc57c..a7116a7a5 100644 --- a/modules/ppcp-axo/src/AxoModule.php +++ b/modules/ppcp-axo/src/AxoModule.php @@ -349,25 +349,25 @@ class AxoModule implements ServiceModule, ExtendingModule, ExecutableModule { } ); - // Remove Fastlane on the Pay for Order page. - add_filter( - 'woocommerce_available_payment_gateways', + // Remove Fastlane on the Pay for Order page. + add_filter( + 'woocommerce_available_payment_gateways', /** * Param types removed to avoid third-party issues. * * @psalm-suppress MissingClosureParamType */ - static function ( $methods ) { - if ( ! is_array( $methods ) || ! is_wc_endpoint_url( 'order-pay' ) ) { - return $methods; - } - - // Remove Fastlane if present. - unset( $methods[AxoGateway::ID] ); - - return $methods; - } - ); + static function ( $methods ) { + if ( ! is_array( $methods ) || ! is_wc_endpoint_url( 'order-pay' ) ) { + return $methods; + } + + // Remove Fastlane if present. + unset( $methods[ AxoGateway::ID ] ); + + return $methods; + } + ); return true; } diff --git a/modules/ppcp-button/src/Helper/ThreeDSecure.php b/modules/ppcp-button/src/Helper/ThreeDSecure.php index e853d7ad9..4d241c9a4 100644 --- a/modules/ppcp-button/src/Helper/ThreeDSecure.php +++ b/modules/ppcp-button/src/Helper/ThreeDSecure.php @@ -20,7 +20,7 @@ use WooCommerce\PayPalCommerce\ApiClient\Factory\CardAuthenticationResultFactory class ThreeDSecure { const NO_DECISION = 0; - const PROCEED = 1; + const PROCEED = 1; const REJECT = 2; const RETRY = 3;