wikimedia/mediawiki-core

View on GitHub
includes/jobqueue/jobs/ParsoidCachePrewarmJob.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method doParsoidCacheUpdate has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function doParsoidCacheUpdate() {
        $page = $this->pageLookup->getPageById( $this->params['pageId'] );
        $revId = $this->params['revId'];

        if ( $page === null ) {
Severity: Minor
Found in includes/jobqueue/jobs/ParsoidCachePrewarmJob.php - About 1 hr to fix

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

            array $params,
            ParserOutputAccess $parserOutputAccess,
            PageLookup $pageLookup,
            RevisionLookup $revisionLookup,
            ParsoidSiteConfig $parsoidSiteConfig
    Severity: Minor
    Found in includes/jobqueue/jobs/ParsoidCachePrewarmJob.php - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status