Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-analytics/Model/Report/SearchRequestBuilder.php

Summary

Maintainability
A
35 mins
Test Coverage

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

        \Smile\ElasticsuiteCore\Search\Request\Builder $searchRequestBuilder,
        Context $context,
        array $aggregationProviders = [],
        array $queryProviders = [],
        $containerName = 'tracking_log_event'
Severity: Minor
Found in src/module-elasticsuite-analytics/Model/Report/SearchRequestBuilder.php - About 35 mins to fix

    Argument 5 (query) is null but \Smile\ElasticsuiteCore\Search\Request\Builder::create() takes \Smile\ElasticsuiteCore\Search\Request\QueryInterface|string defined at /code/src/module-elasticsuite-core/Search/Request/Builder.php:136
    Open

            return $this->searchRequestBuilder->create($storeId, $this->containerName, 0, 0, null, [], [], $searchQuery, $aggregations);

    There are no issues that match your filters.

    Category
    Status