src/module-elasticsuite-catalog-optimizer/Model/Optimizer/Functions/Provider/DefaultProvider.php
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
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
Open
use Smile\ElasticsuiteCatalogOptimizer\Model\ResourceModel\Optimizer\CollectionFactory;
- Exclude checks
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
Open
foreach ($optimizers as $optimizer) {
- Exclude checks