Model/ResourceModel/ProductLabel.php
Method checkUnicity
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkUnicity(AbstractModel $object, array $stores): bool
{
$isDefaultStore = $this->storeManager->isSingleStoreMode()
|| array_search(Store::DEFAULT_STORE_ID, $stores) !== false;
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Context $context,
EntityManager $entityManager,
MetadataPool $metadataPool,
StoreManagerInterface $storeManager,
Json $jsonSerializer,