wikimedia/mediawiki-core

View on GitHub
includes/gallery/ImageGalleryBase.php

Summary

Maintainability
B
4 hrs
Test Coverage

ImageGalleryBase has 24 functions (exceeds 20 allowed). Consider refactoring.
Open

abstract class ImageGalleryBase extends ContextSource {
    public const LOADING_DEFAULT = 1;
    public const LOADING_LAZY = 2;

    /**
Severity: Minor
Found in includes/gallery/ImageGalleryBase.php - About 2 hrs to fix

    Method add has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

                $title,
                $html = '',
                $alt = '',
                $link = '',
                $handlerOpts = [],
    Severity: Major
    Found in includes/gallery/ImageGalleryBase.php - About 50 mins to fix

      Method insert has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

                  $title,
                  $html = '',
                  $alt = '',
                  $link = '',
                  $handlerOpts = [],
      Severity: Major
      Found in includes/gallery/ImageGalleryBase.php - About 50 mins to fix

        There are no issues that match your filters.

        Category
        Status