wikimedia/mediawiki-extensions-Wikibase

View on GitHub
lib/includes/WikibaseContentLanguages.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method getDefaultTermsLanguages has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function getDefaultTermsLanguages( LanguageNameUtils $languageNameUtils = null ) {
        // Note: this list is also the basis of getDefaultMonolingualTextLanguages(); custom
        // (non-MediaWikiContentLanguages) terms languages also become monolingual text languages.
        return new UnionContentLanguages(
            new MediaWikiContentLanguages( $languageNameUtils ),
Severity: Major
Found in lib/includes/WikibaseContentLanguages.php - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status