wikimedia/mediawiki-extensions-Wikibase

View on GitHub
client/includes/Specials/SpecialUnconnectedPages.php

Summary

Maintainability
A
1 hr
Test Coverage

Method getPageHeader has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getPageHeader() {
        $excludeNamespaces = array_diff(
            $this->namespaceInfo->getValidNamespaces(),
            $this->namespaceChecker->getWikibaseNamespaces()
        );
Severity: Minor
Found in client/includes/Specials/SpecialUnconnectedPages.php - About 1 hr to fix

    Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            IConnectionProvider $dbProvider,
            NamespaceInfo $namespaceInfo,
            TitleFactory $titleFactory,
            ClientDomainDbFactory $db,
            NamespaceChecker $namespaceChecker
    Severity: Minor
    Found in client/includes/Specials/SpecialUnconnectedPages.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status