wikimedia/mediawiki-extensions-Wikibase

View on GitHub
view/src/ViewFactory.php

Summary

Maintainability
B
4 hrs
Test Coverage

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

        EntityIdFormatterFactory $htmlIdFormatterFactory,
        EntityIdFormatterFactory $plainTextIdFormatterFactory,
        HtmlSnakFormatterFactory $htmlSnakFormatterFactory,
        StatementGrouper $statementGrouper,
        PropertyOrderProvider $propertyOrderProvider,
Severity: Major
Found in view/src/ViewFactory.php - About 2 hrs to fix

    Method newItemView has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function newItemView(
            Language $language,
            TermLanguageFallbackChain $termFallbackChain,
            CacheableEntityTermsView $entityTermsView
        ) {
    Severity: Minor
    Found in view/src/ViewFactory.php - About 1 hr to fix

      Method newStatementGroupListView has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function newStatementGroupListView(
              $languageCode,
              TermLanguageFallbackChain $termFallbackChain,
              EditSectionGenerator $editSectionGenerator
          ) {
      Severity: Minor
      Found in view/src/ViewFactory.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status