wikimedia/mediawiki-core

View on GitHub
includes/Rest/Handler/MediaLinksHandler.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    private function processDbResults( $results ) {
        // Using "private" here means an equivalent of the Action API's "anon-public-user-private"
        // caching model would be necessary, if caching is ever added to this endpoint.
        $performer = $this->getAuthority();
        $findTitles = array_map( static function ( $title ) use ( $performer ) {
Severity: Minor
Found in includes/Rest/Handler/MediaLinksHandler.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status