wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/includes/Diff/EntityDiffVisualizerFactory.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method newEntityDiffVisualizer has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function newEntityDiffVisualizer( ?string $type = null, ?IContextSource $context = null ): EntityDiffVisualizer {
        if ( $context === null ) {
            $context = RequestContext::getMain();
        }
        $langCode = $context->getLanguage()->getCode();
Severity: Minor
Found in repo/includes/Diff/EntityDiffVisualizerFactory.php - About 1 hr to fix

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

            array $entityDiffVisualizerInstantiators,
            ClaimDiffer $claimDiffer,
            SiteLookup $siteLookup,
            EntityIdFormatterFactory $entityIdFormatterFactory,
            OutputFormatSnakFormatterFactory $snakFormatterFactory
    Severity: Minor
    Found in repo/includes/Diff/EntityDiffVisualizerFactory.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status