Wrap multiple condition in parenthesis

This commit is contained in:
Emili Castells Guasch 2024-10-14 14:02:35 +02:00
parent b2b3a35774
commit a16ab58dd8

View file

@ -74,7 +74,7 @@ class BlocksModule implements ServiceModule, ExtendingModule, ExecutableModule {
assert( $settings instanceof Settings );
// Include ACDC in the Block Checkout only in case Axo doesn't exist or is not available or the user is logged in.
if ( ($settings->has( 'axo_enabled' ) && ! $settings->get( 'axo_enabled' )) || is_user_logged_in() ) {
if ( ( $settings->has( 'axo_enabled' ) && ! $settings->get( 'axo_enabled' ) ) || is_user_logged_in() ) {
$payment_method_registry->register( $c->get( 'blocks.advanced-card-method' ) );
}
}