Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-tracker/Model/Event/Processor/OrderItems.php

Summary

Maintainability
A
55 mins
Test Coverage

Showing 1 of 1 total issue

Function process has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

public function process($eventData)
{
if (isset($eventData['page']['order']['items'])) {
$eventData['page']['order']['items'] = array_values($eventData['page']['order']['items']);
$eventDate = $eventData['date'] ?? null;
Severity: Minor
Found in src/module-elasticsuite-tracker/Model/Event/Processor/OrderItems.php - About 55 mins to fix

There are no issues that match your filters.

Category
Status