Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-catalog-optimizer/Model/Optimizer/Functions/Provider/DefaultProvider.php

Summary

Maintainability
A
35 mins
Test Coverage

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

        CollectionProviderFactory $collectionProviderFactory,
        CacheInterface $cache,
        CacheKeyProviderInterface $cacheKeyProvider,
        array $appliers = [],
        $cacheLifetime = self::DEFAULT_CACHE_LIFETIME

    Possibly zero references to use statement for classlike/namespace CollectionFactory (\Smile\ElasticsuiteCatalogOptimizer\Model\ResourceModel\Optimizer\CollectionFactory)
    Open

    use Smile\ElasticsuiteCatalogOptimizer\Model\ResourceModel\Optimizer\CollectionFactory;

    Class \Smile\ElasticsuiteCatalogOptimizer\Model\ResourceModel\Optimizer\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 ($optimizers as $optimizer) {

    There are no issues that match your filters.

    Category
    Status