Commits auf Quelle (8)
-
verfasst von Michael Danielczoka4bb8cca
-
verfasst von Henning Leutz
Updated several files to make use of the pipe operator for better type declaration readability and clarity. This includes specifying types in functions parameters and class property declarations.
a36ca14b -
verfasst von Henning Leutz
Changed 'QUI\\DataBase\\Exception' to 'QUI\\Database\\Exception' in src/QUI/ERP/Accounting/Invoice/Invoice.php to fix a typo in the namespace, which was causing a failure in setting processing status.
40206500 -
verfasst von Henning Leutz
Resolves an issue where QUI\\\\Database\\\\Exception was incorrectly referenced as QUI\\\\DataBase\\\\Exception in phpstan-baseline.neon. It also removes the affected code for cleaner modification.
1948bd97 -
verfasst von Henning Leutz
This commit addresses numerous PHPStan errors and warnings throughout different files in the application. The changes include correcting faulty type expectations, reorganizing code sections for readability and better functionality, and making sure function parameters satisfy required type constraints. This enhances the overall code quality, readability, and maintainability.
a545b5c8 -
verfasst von Henning Leutz
This commit removes redundant import statements from the `Invoice/Factory.php` file for cleaner, more efficient code. The removed imports are `QUI\Interfaces\Users\User` which was not used in the file.
5eb74125 -
verfasst von Henning Leutz
This commit removes unreachable 'else' branches and irrelevant PHPStan error messages from the PHPStan configuration file. It also updates the `InvoiceView` and `OutputProviderInvoice` classes to add checks for the existence of methods before invoking them. This prevents runtime errors in cases where the methods do not exist. Related: #153
afb95504 -
verfasst von Henning Leutz
refactor(phpstan): update usage of types for better clarity See merge request !91
- .phive/phars.xml 1 Ergänzung, 1 Löschung.phive/phars.xml
- phpstan-baseline.neon 0 Ergänzungen, 100 Löschungenphpstan-baseline.neon
- src/QUI/ERP/Accounting/Invoice/Factory.php 6 Ergänzungen, 6 Löschungensrc/QUI/ERP/Accounting/Invoice/Factory.php
- src/QUI/ERP/Accounting/Invoice/FrontendUsers/UserInvoices.css 6 Ergänzungen, 12 Löschungen...QUI/ERP/Accounting/Invoice/FrontendUsers/UserInvoices.css
- src/QUI/ERP/Accounting/Invoice/FrontendUsers/UserInvoices.html 47 Ergänzungen, 45 Löschungen...UI/ERP/Accounting/Invoice/FrontendUsers/UserInvoices.html
- src/QUI/ERP/Accounting/Invoice/Handler.php 7 Ergänzungen, 7 Löschungensrc/QUI/ERP/Accounting/Invoice/Handler.php
- src/QUI/ERP/Accounting/Invoice/Invoice.php 23 Ergänzungen, 18 Löschungensrc/QUI/ERP/Accounting/Invoice/Invoice.php
- src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php 19 Ergänzungen, 14 Löschungensrc/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php
- src/QUI/ERP/Accounting/Invoice/InvoiceView.php 14 Ergänzungen, 17 Löschungensrc/QUI/ERP/Accounting/Invoice/InvoiceView.php
- src/QUI/ERP/Accounting/Invoice/Output/OutputProviderCancelled.php 3 Ergänzungen, 3 Löschungen...ERP/Accounting/Invoice/Output/OutputProviderCancelled.php
- src/QUI/ERP/Accounting/Invoice/Output/OutputProviderCreditNote.php 3 Ergänzungen, 3 Löschungen...RP/Accounting/Invoice/Output/OutputProviderCreditNote.php
- src/QUI/ERP/Accounting/Invoice/Output/OutputProviderInvoice.php 19 Ergänzungen, 14 Löschungen...I/ERP/Accounting/Invoice/Output/OutputProviderInvoice.php
- src/QUI/ERP/Accounting/Invoice/Payment.php 3 Ergänzungen, 3 Löschungensrc/QUI/ERP/Accounting/Invoice/Payment.php
- src/QUI/ERP/Accounting/Invoice/PaymentReceiver.php 5 Ergänzungen, 5 Löschungensrc/QUI/ERP/Accounting/Invoice/PaymentReceiver.php
- src/QUI/ERP/Accounting/Invoice/ProcessingStatus/Factory.php 2 Ergänzungen, 2 Löschungensrc/QUI/ERP/Accounting/Invoice/ProcessingStatus/Factory.php
- src/QUI/ERP/Accounting/Invoice/ProcessingStatus/Handler.php 2 Ergänzungen, 2 Löschungensrc/QUI/ERP/Accounting/Invoice/ProcessingStatus/Handler.php
- src/QUI/ERP/Accounting/Invoice/ProcessingStatus/Status.php 3 Ergänzungen, 3 Löschungensrc/QUI/ERP/Accounting/Invoice/ProcessingStatus/Status.php
- src/QUI/ERP/Accounting/Invoice/Search/InvoiceSearch.php 6 Ergänzungen, 6 Löschungensrc/QUI/ERP/Accounting/Invoice/Search/InvoiceSearch.php
- src/QUI/ERP/Accounting/Invoice/Utils/Invoice.php 13 Ergänzungen, 20 Löschungensrc/QUI/ERP/Accounting/Invoice/Utils/Invoice.php