Controller/Adminhtml/Templates/Edit.php
Method execute
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute()
{
$id = $this->getRequest()->getParam('template_id');
if ($id) {
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Context $context,
PageFactory $resultPageFactory,
Registry $registry,
TemplateRepository $templateRepository,
PdfgeneratorFactory $pdfgeneratorFactory