wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/maintenance/rebuildItemTerms.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method execute has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function execute() {
        if ( !ExtensionRegistry::getInstance()->isLoaded( 'WikibaseRepository' ) ) {
            $this->fatalError(
                "You need to have Wikibase enabled in order to use this "
                . "maintenance script!\n\n",
Severity: Minor
Found in repo/maintenance/rebuildItemTerms.php - About 1 hr to fix

    Method __construct has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function __construct() {
            parent::__construct();
    
            $this->addDescription( 'Rebuilds item terms from primary persistence' );
    
    
    Severity: Minor
    Found in repo/maintenance/rebuildItemTerms.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status