wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub
includes/Query/DeepcatFeature.php

Summary

Maintainability
A
1 hr
Test Coverage

Method fetchCategories has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function fetchCategories( $rootCategory, WarningCollector $warningCollector ) {
        $title = Title::makeTitleSafe( NS_CATEGORY, $rootCategory );
        if ( $title === null ) {
            $warningCollector->addWarning( 'cirrussearch-feature-deepcat-invalid-title' );
            return [];
Severity: Minor
Found in includes/Query/DeepcatFeature.php - About 1 hr to fix

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

        protected function doApply( SearchContext $context, $key, $value, $quotedValue, $negated ) {
    Severity: Minor
    Found in includes/Query/DeepcatFeature.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status