Skip to content
Code-Schnipsel Gruppen Projekte
  1. Feb 14, 2025
    • Henning Leutz's avatar
      refactor(phpstan): change order interface to erp entity interface in Discount · e8c4d77c
      verfasst von Henning Leutz
      Updated the 'canUsedInOrder' function in Discount.php to accept ERP Entity Interface arguments
      instead of Order Interfaces for better flexibility and compatibility. Added checks to ensure that
      the provided entity is an instance of the Order Interface, increasing robustness.
      e8c4d77c
    • Henning Leutz's avatar
      fix(phpstan): improved method validity checks and reduced error handling · 6100708f
      verfasst von Henning Leutz
      This commit fixes several issues in different PHP files.
      - Added `method_exists` checks for `isActive` method in `activate.php`, `deactivate.php` and
      `toggle.php` to prevent calls to an undefined method.
      - Similar check added for `getTitle` method in `get.php`.
      - Fixed sorting functionality in `search.php` by using `strcmp` instead of greater than comparison.
      - Removed a large number of ignored errors in `phpstan-baseline.neon`, indicating reduced error
      handling.
      - Corrected the `implode` parameters order in `Discount.php` and typecasted variable to string
      before using `explode` in `PriceFactor.php`.
      - Updated `getTitle` & `toPriceFactor` method parameters in `Discount.php` to use union types for
      compatibility with different data types.
      
      Related: #18
      6100708f
  2. Mai 10, 2024
  3. Mai 06, 2024
  4. Apr 24, 2024
  5. Apr 18, 2024
  6. Feb 24, 2022
  7. Jan 11, 2022
  8. Okt 18, 2021
  9. Sep 06, 2021
  10. Jun 14, 2021
  11. Jun 09, 2021
  12. Mär 04, 2021
  13. Mär 03, 2021
  14. Nov 25, 2020
  15. Jun 26, 2020
  16. Mai 25, 2020
  17. Mai 22, 2020
  18. Sep 20, 2019
  19. Jul 26, 2019
  20. Nov 08, 2018
  21. Nov 07, 2018
  22. Nov 02, 2018
  23. Okt 11, 2018
  24. Sep 21, 2018
  25. Sep 18, 2018
  26. Mär 09, 2018
  27. Mär 08, 2018
  28. Mär 07, 2018
  29. Apr 05, 2017
  30. Jul 26, 2016
  31. Jul 23, 2016
Lade