inklabs/kommerce-core

View on GitHub
src/Service/OrderServiceInterface.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method createOrderFromCart has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

        UuidInterface $orderId,
        User $user,
        Cart $cart,
        CartCalculatorInterface $cartCalculator,
        string $ip4,
Severity: Major
Found in src/Service/OrderServiceInterface.php - About 1 hr to fix

    Method addShipmentTrackingCode has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            UuidInterface $orderId,
            OrderItemQtyDTO $orderItemQtyDTO,
            string $comment,
            int $shipmentCarrierTypeId,
            string $trackingCode
    Severity: Minor
    Found in src/Service/OrderServiceInterface.php - About 35 mins to fix

      Method buyShipmentLabel has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              UuidInterface $orderId,
              OrderItemQtyDTO $orderItemQtyDTO,
              string $comment,
              string $rateExternalId,
              string $shipmentExternalId
      Severity: Minor
      Found in src/Service/OrderServiceInterface.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status