wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/includes/UpdateRepo/UpdateRepoJob.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    private function getItem(): ?Item {
        $params = $this->getParams();
        $itemId = new ItemId( $params['entityId'] );
        try {
            $entity = $this->entityLookup->getEntity( $itemId );
Severity: Minor
Found in repo/includes/UpdateRepo/UpdateRepoJob.php - About 1 hr to fix

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

            EntityLookup $entityLookup,
            EntityStore $entityStore,
            SummaryFormatter $summaryFormatter,
            LoggerInterface $logger,
            MediaWikiEditEntityFactory $editEntityFactory,
    Severity: Minor
    Found in repo/includes/UpdateRepo/UpdateRepoJob.php - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status