Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-tracker/Model/Data/Checker.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 2 of 2 total issues

Function checkAndFixData has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

public function checkAndFixData(int $storeId): array
{
$data = [];
 
foreach ($this->checkers as &$checker) {
Severity: Minor
Found in src/module-elasticsuite-tracker/Model/Data/Checker.php - About 1 hr to fix

syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
Open

private array $checkers;
Category
Status