src/module-elasticsuite-thesaurus/Model/ResourceModel/Thesaurus.php
Showing 2 of 2 total issues
Function saveTermsRelation
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
Open
private function saveTermsRelation(\Magento\Framework\Model\AbstractModel $object) { $termRelations = $object->getTermsRelations() ?? []; $termRelations = array_filter($termRelations);
- Read upRead up
Function saveStoreRelation
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
private function saveStoreRelation(\Magento\Framework\Model\AbstractModel $object) { $storeIds = $object->getStoreIds(); if (is_array($storeIds) && (count($storeIds) > 0)) {
- Read upRead up