Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-core/Search/Request/Aggregation/Bucket/DateHistogram.php

Summary

Maintainability
A
1 hr
Test Coverage

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

        $name,
        $field,
        array $metrics = [],
        array $childBuckets = [],
        array $pipelines = [],

    Doc-block of $filter in __construct is phpdoc param type \Smile\ElasticsuiteCore\Search\Request\QueryInterface which is not a permitted replacement of the nullable param type ?\Smile\ElasticsuiteCore\Search\Request\QueryInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
    Open

         * @param QueryInterface      $filter           Bucket filter.

    Default value for int $interval can't be string
    Open

        public function __construct(

    Returning type string but getFixedInterval() is declared to return int
    Open

            return $this->fixedInterval;

    Returning type string but getCalendarInterval() is declared to return int
    Open

            return $this->calendarInterval;

    Doc-block of $nestedFilter in __construct is phpdoc param type \Smile\ElasticsuiteCore\Search\Request\QueryInterface which is not a permitted replacement of the nullable param type ?\Smile\ElasticsuiteCore\Search\Request\QueryInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
    Open

         * @param QueryInterface      $nestedFilter     Nested filter for the bucket.

    There are no issues that match your filters.

    Category
    Status