wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub
includes/BuildDocument/Completion/PQScore.php

Summary

Maintainability
A
1 hr
Test Coverage

Method explain has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function explain( array $doc ) {
        $qualityExplain = $this->intermediateExplain( $doc );
        $pop = $doc['popularity_score'] ?? 0;
        if ( $pop > self::POPULARITY_MAX ) {
            $popExplain = [
Severity: Minor
Found in includes/BuildDocument/Completion/PQScore.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status