diff --git a/src/Controller/OrderController.php b/src/Controller/OrderController.php index 1519b2e7..6154fb18 100644 --- a/src/Controller/OrderController.php +++ b/src/Controller/OrderController.php @@ -149,9 +149,11 @@ public function isSepaPayment(): ?bool $payment = $this->getPayment(); return ( - ($payment instanceof Payment) ? - ( $payment->getId() === CoreUnzerDefinitions::SEPA_UNZER_PAYMENT_ID - || $payment->getId() === CoreUnzerDefinitions::SEPA_SECURED_UNZER_PAYMENT_ID) : false + $payment instanceof Payment && + ( + $payment->getId() === CoreUnzerDefinitions::SEPA_UNZER_PAYMENT_ID || + $payment->getId() === CoreUnzerDefinitions::SEPA_SECURED_UNZER_PAYMENT_ID + ) ); }