includes/Search/SearchQueryBuilder.php
SearchQueryBuilder
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
final class SearchQueryBuilder {
/**
* @var ParsedQuery
*/
Method copyQueryForCrossSearch
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function copyQueryForCrossSearch( SearchConfig $config, SearchQuery $original ): SearchQueryBuilder {
Assert::precondition( $original->getContextualFilters() === [], 'The initial must not have contextual filters' );
$builder = new self();
$builder->parsedQuery = $original->getParsedQuery();
$builder->searchEngineEntryPoint = $original->getSearchEngineEntryPoint();