Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-catalog/Model/Autocomplete/Product/DataProvider.php

Summary

Maintainability
A
35 mins
Test Coverage

Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        ItemFactory $itemFactory,
        Collection\Provider $productCollectionProvider,
        ConfigurationHelper $configurationHelper,
        ContextInterface    $searchContext,
        $type = self::AUTOCOMPLETE_TYPE

    Class \Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\Fulltext\Collection was passed to foreach, but it does not extend Traversable and none of its declared properties are accessible from this context. (This check excludes dynamic properties)
    Open

                foreach ($this->productCollection as $product) {

    There are no issues that match your filters.

    Category
    Status