Fix phpcs

This commit is contained in:
carmenmaymo 2025-04-03 11:06:36 +02:00
parent 3a84cc76c3
commit 842506e554
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E
2 changed files with 15 additions and 15 deletions

View file

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

View file

@ -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;