From 01cb2a1806ab6b90e2d8a06964204eae9869d012 Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Thu, 20 Feb 2025 14:50:19 +0100 Subject: [PATCH] [ECP-8888] Fix maintainability issue --- Helper/PaymentMethods.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/PaymentMethods.php b/Helper/PaymentMethods.php index 5a9d2c8da..0cb8cc049 100644 --- a/Helper/PaymentMethods.php +++ b/Helper/PaymentMethods.php @@ -1094,6 +1094,6 @@ public function getRequiresLineItems(MethodInterface $paymentMethodInstance): bo $isOpenInvoice = $this->isOpenInvoice($paymentMethodInstance); $requiresLineItemsConfig = boolval($paymentMethodInstance->getConfigData(self::CONFIG_FIELD_REQUIRES_LINE_ITEMS)); - return ($isOpenInvoice || $requiresLineItemsConfig); + return $isOpenInvoice || $requiresLineItemsConfig; } }