inklabs/kommerce-core

View on GitHub
src/Entity/Order.php

Summary

Maintainability
C
1 day
Test Coverage

Order has 41 functions (exceeds 20 allowed). Consider refactoring.
Open

class Order implements IdEntityInterface, ReferenceNumberEntityInterface
{
    use TimeTrait, IdTrait, EventGeneratorTrait;

    /** @var string|null */
Severity: Minor
Found in src/Entity/Order.php - About 5 hrs to fix

    File Order.php has 270 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    namespace inklabs\kommerce\Entity;
    
    use inklabs\kommerce\Event\OrderShippedEvent;
    use inklabs\kommerce\Lib\CartCalculatorInterface;
    Severity: Minor
    Found in src/Entity/Order.php - About 2 hrs to fix

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

              UuidInterface $orderId,
              User $user,
              Cart $cart,
              CartCalculatorInterface $cartCalculator,
              string $ip4
      Severity: Minor
      Found in src/Entity/Order.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status