EaDesgin/magento2-pdf-generator2

View on GitHub
Controller/Adminhtml/Templates/Edit.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    public function execute()
    {
        $id = $this->getRequest()->getParam('template_id');

        if ($id) {
Severity: Minor
Found in Controller/Adminhtml/Templates/Edit.php - About 1 hr to fix

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

            Context $context,
            PageFactory $resultPageFactory,
            Registry $registry,
            TemplateRepository $templateRepository,
            PdfgeneratorFactory $pdfgeneratorFactory
    Severity: Minor
    Found in Controller/Adminhtml/Templates/Edit.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status