Consolidate conditional

This commit is contained in:
dinamiko 2022-11-03 12:06:04 +01:00
parent 5fa1907d97
commit faa9fbe982

View file

@ -60,15 +60,11 @@ class PayUponInvoiceHelper {
return false;
}
if ( ! $this->is_valid_product() ) {
return false;
}
if ( ! $this->is_valid_currency() ) {
return false;
}
if ( ! $this->checkout_helper->is_checkout_amount_allowed( 5, 2500 ) ) {
if (
! $this->is_valid_product()
|| ! $this->is_valid_currency()
|| ! $this->checkout_helper->is_checkout_amount_allowed( 5, 2500 )
) {
return false;
}