wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub
includes/Search/SearchQueryBuilder.php

Summary

Maintainability
A
3 hrs
Test Coverage

SearchQueryBuilder has 23 functions (exceeds 20 allowed). Consider refactoring.
Open

final class SearchQueryBuilder {

    /**
     * @var ParsedQuery
     */
Severity: Minor
Found in includes/Search/SearchQueryBuilder.php - About 2 hrs to fix

    Method copyQueryForCrossSearch has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    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();
    Severity: Minor
    Found in includes/Search/SearchQueryBuilder.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status