Smile-SA/magento2-module-product-label

View on GitHub
Model/ResourceModel/ProductLabel.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method checkUnicity has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function checkUnicity(AbstractModel $object, array $stores): bool
    {
        $isDefaultStore = $this->storeManager->isSingleStoreMode()
            || array_search(Store::DEFAULT_STORE_ID, $stores) !== false;

Severity: Minor
Found in Model/ResourceModel/ProductLabel.php - About 1 hr to fix

    Method __construct has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            Context $context,
            EntityManager $entityManager,
            MetadataPool $metadataPool,
            StoreManagerInterface $storeManager,
            Json $jsonSerializer,
    Severity: Minor
    Found in Model/ResourceModel/ProductLabel.php - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status