Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-indices/Block/Adminhtml/Analysis/Analyzer.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Function getElasticSuiteIndices has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

public function getElasticSuiteIndices(): ?array
{
if ($this->indexStatsProvider->getElasticSuiteIndices() !== null) {
$elasticSuiteIndices = $this->indexStatsProvider->getElasticSuiteIndices();
$excludedIndexStatus = [
Severity: Minor
Found in src/module-elasticsuite-indices/Block/Adminhtml/Analysis/Analyzer.php - About 35 mins to fix

Similar blocks of code found in 3 locations. Consider refactoring.
Open

public function __construct(
Template\Context $context,
IndexStatsProvider $indexStatsProvider,
CollectionFactory $collectionFactory,
array $data = []
src/module-elasticsuite-core/Block/Adminhtml/Search/Request/RelevanceConfig/Edit.php on lines 68..77
src/module-elasticsuite-core/Block/Adminhtml/System/Version.php on lines 58..67
Category
Status