wikimedia/mediawiki-core

View on GitHub
includes/filerepo/file/ForeignAPIFile.php

Summary

Maintainability
B
4 hrs
Test Coverage

ForeignAPIFile has 30 functions (exceeds 20 allowed). Consider refactoring.
Open

class ForeignAPIFile extends File {
    /** @var bool */
    private $mExists;
    /** @var array */
    private $mInfo;
Severity: Minor
Found in includes/filerepo/file/ForeignAPIFile.php - About 3 hrs to fix

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

        public function transform( $params, $flags = 0 ) {
            if ( !$this->canRender() ) {
                // show icon
                return parent::transform( $params, $flags );
            }
    Severity: Minor
    Found in includes/filerepo/file/ForeignAPIFile.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status