Skip to content
Code-Schnipsel Gruppen Projekte
  1. Feb 26, 2025
    • Henning Leutz's avatar
      fix: set user to article list at setCustomer() · be2a05bb
      verfasst von Henning Leutz
      This commit refactors the formatting and structure of the reversal method for improved readability.
      Additionally, it removes an unnecessary exception in the 'setCustomer' method.
      
      This commit also fixes the customer user settings in various methods in the order class. Now,
      whenever a customer is set or removed, the related articles will correctly update their user status.
      be2a05bb
  2. Feb 23, 2025
    • Henning Leutz's avatar
      fix(phpstan): handle non-existing classes in abstractOrder.php · afb39d80
      verfasst von Henning Leutz
      This commit fixes the errors arising from non-existing classes in the AbstractOrder.php
      
      Changes include:
      - Added a comment on the shipping validation
      - Corrected type declaration in the reversal function signature to include the possibility of the
      parameter being null.
      - Checked for the existence of ShippingStatus and ShippingEntry classes before attempting to get
      Shipping status and Shipping Ids, respectively. This prevents errors if these classes do not exist.
      
      Related: #172
      afb39d80
    • Henning Leutz's avatar
      style: update code formatting and type declarations · 222a914c
      verfasst von Henning Leutz
      Changes include:
      - Modified code formatting to improve readability and conform to best coding practices.
      - Updated type declarations using pipe (|) operator to indicate variable can hold multiple types.
      - Adjusted the spacing around the pipe operator in type declarations for improved readability.
      222a914c
    • Henning Leutz's avatar
      fix(phpstan): update abstractorder and other files for consistent function behaviour · a5f3b8e5
      verfasst von Henning Leutz
      Updated AbstractOrder.php to return null instead of false in getShippingStatus() when the shipping
      status is not set. This makes the method's behaviour more consistent.
      
      Updated Search.php to add a condition check for class existence before retrieving shipping status.
      This ensures that the code will not fail if the class is not defined.
      
      Modified DataLayer.php to add a condition check for class existence before retrieving shipping.
      
      Added @phpstan-ignore-next-line in Utils.php to silence phpstan for the next line of code.
      
      Related: #172
      a5f3b8e5
    • Henning Leutz's avatar
      refactor(phpstan): php8.4 null deprecated · b7d4519e
      verfasst von Henning Leutz
      b7d4519e
  3. Feb 22, 2025
  4. Feb 19, 2025
  5. Jul 05, 2024
  6. Jun 13, 2024
  7. Jun 10, 2024
  8. Mai 16, 2024
  9. Apr 27, 2024
  10. Apr 20, 2024
  11. Mär 21, 2024
  12. Mär 14, 2024
  13. Mär 06, 2024
  14. Mär 05, 2024
  15. Mär 04, 2024
  16. Feb 16, 2024
  17. Feb 15, 2024
  18. Feb 14, 2024
  19. Jan 26, 2024
  20. Jan 22, 2024
  21. Jan 18, 2024
  22. Nov 24, 2023
  23. Sep 18, 2023
Lade