src/module-elasticsuite-core/Search/Request.php
Request
has 11 functions (exceeds 10 allowed). Consider refactoring. Open
Open
class Request extends \Magento\Framework\Search\Request implements RequestInterface
{
/**
* @var SortOrderInterface
*/
Method __construct
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$name,
$indexName,
QueryInterface $query,
QueryInterface $filter = null,
array $sortOrders = null,
Assigning string
to property but \Smile\ElasticsuiteCore\Search\Request->spellingType
is int
Open
Open
$this->spellingType = $spellingType;
- Exclude checks
Doc-block of $sortOrders
in __construct
is phpdoc param type \Smile\ElasticsuiteCore\Search\Request\SortOrderInterface[]
which is not a permitted replacement of the nullable param type ?array
declared in the signature ('?T' should be documented as 'T|null' or '?T') Open
Open
* @param SortOrderInterface[] $sortOrders Sort orders specification.
- Exclude checks
Returning type int
but getSpellingType()
is declared to return string
Open
Open
return $this->spellingType;
- Exclude checks
Assigning ?\Magento\Framework\Search\Request\QueryInterface
to property but \Smile\ElasticsuiteCore\Search\Request->filter
is \Magento\Framework\Search\Request\QueryInterface
Open
Open
$this->filter = $filter;
- Exclude checks
Doc-block of $filter
in __construct
is phpdoc param type \Magento\Framework\Search\Request\QueryInterface
which is not a permitted replacement of the nullable param type ?\Magento\Framework\Search\Request\QueryInterface
declared in the signature ('?T' should be documented as 'T|null' or '?T') Open
Open
* @param QueryInterface $filter Search filter.
- Exclude checks
Assigning ?array
to property but \Smile\ElasticsuiteCore\Search\Request->sortOrders
is \Smile\ElasticsuiteCore\Search\Request\SortOrderInterface
Open
Open
$this->sortOrders = $sortOrders;
- Exclude checks
Returning type \Smile\ElasticsuiteCore\Search\Request\SortOrderInterface
but getSortOrders()
is declared to return \Smile\ElasticsuiteCore\Search\Request\SortOrderInterface[]
Open
Open
return $this->sortOrders;
- Exclude checks