Skip to content
Code-Schnipsel Gruppen Projekte
Commit 2f717949 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

style(phpstan): improve code readability in OutputProviderOrder

Rearranged conditional statement checks for better readability. This involves the check for whether
the class 'QUI\\ERP\\Payments\\SEPA\\Provider' exists and if 'quiqqer/payment-sepa' package is
installed.
Übergeordneter d2626882
No related branches found
No related tags found
2 Merge Requests!146fix: update `getCustomerFiles` method signature in `AbstractOrder`,!145Update 'next-3.x' with latest changes from 'main'
Pipeline #15535 mit Warnungen bestanden mit Phase
in 2 Minuten und 31 Sekunden
......@@ -474,9 +474,10 @@ protected static function getEpcQrCodeImageImgSrc(Order $Order): bool | string
// Prefer bank account set in SEPA module if available
if (class_exists('QUI\ERP\Payments\SEPA\Provider') && QUI::getPackageManager()->isInstalled(
'quiqqer/payment-sepa'
)) {
if (
class_exists('QUI\ERP\Payments\SEPA\Provider')
&& QUI::getPackageManager()->isInstalled('quiqqer/payment-sepa')
) {
$creditorBankAccount = QUI\ERP\Payments\SEPA\Provider::getCreditorBankAccount();
} else {
$creditorBankAccount = BankAccounts::getCompanyBankAccount();
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren