Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-catalog-graph-ql/Model/Resolver/Products.php

Summary

Maintainability
A
35 mins
Test Coverage

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

    public function resolve(Field $field, $context, ResolveInfo $info, array $value = null, array $args = null)
Severity: Minor
Found in src/module-elasticsuite-catalog-graph-ql/Model/Resolver/Products.php - About 35 mins to fix

    Possibly zero references to use statement for classlike/namespace SearchCriteriaBuilder (\Smile\ElasticsuiteCatalogGraphQl\DataProvider\Product\SearchCriteriaBuilder)
    Open

    use Smile\ElasticsuiteCatalogGraphQl\DataProvider\Product\SearchCriteriaBuilder;

    Possibly zero references to use statement for classlike/namespace Search (\Smile\ElasticsuiteCatalogGraphQl\Model\Resolver\Products\Query\Search)
    Open

    use Smile\ElasticsuiteCatalogGraphQl\Model\Resolver\Products\Query\Search;

    Argument 1 (args) is ?array but \Smile\ElasticsuiteCatalogGraphQl\Model\Resolver\Products::validateArgs() takes array defined at /code/src/module-elasticsuite-catalog-graph-ql/Model/Resolver/Products.php:95
    Open

            $this->validateArgs($args);

    Argument 1 (args) is ?array but \Smile\ElasticsuiteCatalogGraphQl\Model\Resolver\Products\ContextUpdater::updateSearchContext() takes array defined at /code/src/module-elasticsuite-catalog-graph-ql/Model/Resolver/Products/ContextUpdater.php:77
    Open

            $this->contextUpdater->updateSearchContext($args);

    There are no issues that match your filters.

    Category
    Status