wikimedia/mediawiki-extensions-Wikibase

View on GitHub
view/src/SimpleEntityTermsView.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method getHeadingHtml has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function getHeadingHtml(
        $languageCode,
        EntityId $entityId = null,
        AliasGroupList $aliasGroups = null
    ) {
Severity: Minor
Found in view/src/SimpleEntityTermsView.php - About 1 hr to fix

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

            HtmlTermRenderer $htmlTermRenderer,
            LabelDescriptionLookup $labelDescriptionLookup,
            TemplateFactory $templateFactory,
            EditSectionGenerator $sectionEditLinkGenerator,
            TermsListView $termsListView,
    Severity: Minor
    Found in view/src/SimpleEntityTermsView.php - About 45 mins to fix

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

              $mainLanguageCode,
              TermList $labels,
              TermList $descriptions,
              AliasGroupList $aliasGroups = null,
              EntityId $entityId = null
      Severity: Minor
      Found in view/src/SimpleEntityTermsView.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status