wikimedia/mediawiki-extensions-CirrusSearch

View on GitHub
includes/MetaStore/MetaVersionStore.php

Summary

Maintainability
A
1 hr
Test Coverage

Method buildDocument has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function buildDocument( Connection $connection, $baseName, $typeName ) {
        global $IP;
        if ( $typeName == Connection::TITLE_SUGGEST_INDEX_SUFFIX ) {
            [ $aMaj, $aMin ] = explode( '.', SuggesterAnalysisConfigBuilder::VERSION, 3 );
            [ $mMaj, $mMin ] = explode( '.', SuggesterMappingConfigBuilder::VERSION, 3 );
Severity: Minor
Found in includes/MetaStore/MetaVersionStore.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status