wikimedia/mediawiki-core

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

Summary

Maintainability
B
4 hrs
Test Coverage

Method initArchivedFile has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function initArchivedFile( $options ) {
        $this->table( 'filearchive' )
            ->join( 'actor', 'filearchive_actor', 'actor_id=fa_actor' )
            ->join(
                'comment',
Severity: Minor
Found in includes/filerepo/file/FileSelectQueryBuilder.php - About 1 hr to fix

    Method initOldFile has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function initOldFile( $options ) {
            $this->table( 'oldimage' )
                ->join( 'actor', 'oldimage_actor', 'actor_id=oi_actor' )
                ->join(
                    'comment',
    Severity: Minor
    Found in includes/filerepo/file/FileSelectQueryBuilder.php - About 1 hr to fix

      Method initFile has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private function initFile( $options ) {
              $this->table( 'image' )
                  ->join( 'actor', 'image_actor', 'actor_id=img_actor' )
                  ->join(
                      'comment',
      Severity: Minor
      Found in includes/filerepo/file/FileSelectQueryBuilder.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status