wikimedia/mediawiki-extensions-Wikibase

View on GitHub
client/includes/Hooks/InfoActionHookHandler.php

Summary

Maintainability
A
2 hrs
Test Coverage

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

    private function formatEntityUsage( array $usages, IContextSource $context ): array {
        $usageAspectsByEntity = [];
        $entityIds = [];

        foreach ( $usages as $entityUsage ) {
Severity: Minor
Found in client/includes/Hooks/InfoActionHookHandler.php - About 1 hr to fix

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

            NamespaceChecker $namespaceChecker,
            RepoLinker $repoLinker,
            SiteLinkLookup $siteLinkLookup,
            $siteId,
            UsageLookup $usageLookup,
    Severity: Major
    Found in client/includes/Hooks/InfoActionHookHandler.php - About 50 mins to fix

      Method factory has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              DescriptionLookup $descriptionLookup,
              FallbackLabelDescriptionLookupFactory $labelDescriptionLookupFactory,
              NamespaceChecker $namespaceChecker,
              RepoLinker $repoLinker,
              SettingsArray $clientSettings,
      Severity: Minor
      Found in client/includes/Hooks/InfoActionHookHandler.php - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status