Model/ResourceModel/Pdfgenerator.php
Method saveStoreRelation
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function saveStoreRelation(AbstractModel $template)
{
$oldStores = $this->lookupStoreIds($template->getId());
$newStores = (array)$template->getStoreId();
if (empty($newStores)) {
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Context $context,
StoreManagerInterface $storeManager,
DateTime $dateTime,
EntityManager $entityManager,
MetadataPool $metadataPool,