wikimedia/mediawiki-extensions-Wikibase

View on GitHub
client/includes/ClientHooks.php

Summary

Maintainability
A
1 hr
Test Coverage

Method onSkinAfterBottomScripts has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function onSkinAfterBottomScripts( Skin $skin, &$html ) {
        $services = MediaWikiServices::getInstance();
        $enabledNamespaces = WikibaseClient::getSettings( $services )
            ->getSetting( 'pageSchemaNamespaces' );

Severity: Minor
Found in client/includes/ClientHooks.php - About 1 hr to fix

    Method onFormat has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public static function onFormat( &$comment, $pre, $auto, $post, $title, $local, $wikiId = null ) {
    Severity: Major
    Found in client/includes/ClientHooks.php - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status