inklabs/kommerce-core

View on GitHub
src/Entity/OrderAddress.php

Summary

Maintainability
B
5 hrs
Test Coverage

OrderAddress has 29 functions (exceeds 20 allowed). Consider refactoring.
Open

class OrderAddress implements ValidationInterface
{
    /** @var string|null */
    protected $firstName;

Severity: Minor
Found in src/Entity/OrderAddress.php - About 3 hrs to fix

    Method loadValidatorMetadata has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function loadValidatorMetadata(ClassMetadata $metadata)
        {
            $metadata->addPropertyConstraint('firstName', new Assert\Length([
                'max' => 32,
            ]));
    Severity: Minor
    Found in src/Entity/OrderAddress.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status