wikimedia/mediawiki-core

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

Summary

Maintainability
A
2 hrs
Test Coverage

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

    protected function invalidateTitles( array $pages ) {
        // Get all page IDs in this query into an array
        $pageIds = array_keys( $pages );
        if ( !$pageIds ) {
            return;
Severity: Minor
Found in includes/jobqueue/jobs/HTMLCacheUpdateJob.php - About 1 hr to fix

    Method run has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function run() {
            $updateRowsPerJob = MediaWikiServices::getInstance()->getMainConfig()->get(
                MainConfigNames::UpdateRowsPerJob );
            $updateRowsPerQuery = MediaWikiServices::getInstance()->getMainConfig()->get(
                MainConfigNames::UpdateRowsPerQuery );
    Severity: Minor
    Found in includes/jobqueue/jobs/HTMLCacheUpdateJob.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status