Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-swatches/Block/Navigation/Renderer/Swatches/RenderLayered.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Function getSwatchData has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
Open

public function getSwatchData(): array
{
// Fallback to core if sorting is set to manual.
if ($this->eavAttribute->getFacetSortOrder() === BucketInterface::SORT_ORDER_MANUAL) {
return parent::getSwatchData();

There are no issues that match your filters.

Category
Status