EaDesgin/magento2-pdf-generator2

View on GitHub
Model/ResourceModel/Pdfgenerator.php

Summary

Maintainability
A
1 hr
Test Coverage

Method saveStoreRelation has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function saveStoreRelation(AbstractModel $template)
    {
        $oldStores = $this->lookupStoreIds($template->getId());
        $newStores = (array)$template->getStoreId();
        if (empty($newStores)) {
Severity: Minor
Found in Model/ResourceModel/Pdfgenerator.php - About 1 hr to fix

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

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

      There are no issues that match your filters.

      Category
      Status