wikimedia/mediawiki-core

View on GitHub
includes/Storage/PageUpdaterFactory.php

Summary

Maintainability
B
4 hrs
Test Coverage

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

        RevisionStore $revisionStore,
        RevisionRenderer $revisionRenderer,
        SlotRoleRegistry $slotRoleRegistry,
        ParserCache $parserCache,
        JobQueueGroup $jobQueueGroup,
Severity: Major
Found in includes/Storage/PageUpdaterFactory.php - About 3 hrs to fix

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

        public function newDerivedPageDataUpdater( WikiPage $page ): DerivedPageDataUpdater {
            $derivedDataUpdater = new DerivedPageDataUpdater(
                $this->options,
                $page, // NOTE: eventually, PageUpdater should not know about WikiPage
                $this->revisionStore,
    Severity: Minor
    Found in includes/Storage/PageUpdaterFactory.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status