wikimedia/mediawiki-core

View on GitHub
includes/specials/SpecialProtectedPages.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method execute has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function execute( $par ) {
        $this->setHeaders();
        $this->outputHeader();
        $this->getOutput()->addModuleStyles( 'mediawiki.special' );
        $this->addHelpLink( 'Help:Protected_pages' );
Severity: Minor
Found in includes/specials/SpecialProtectedPages.php - About 1 hr to fix

    Method showOptions has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function showOptions( $type, $level, $filters ) {
            $formDescriptor = [
                'namespace' => [
                    'class' => HTMLSelectNamespace::class,
                    'name' => 'namespace',
    Severity: Minor
    Found in includes/specials/SpecialProtectedPages.php - About 1 hr to fix

      Method __construct has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              LinkBatchFactory $linkBatchFactory,
              IConnectionProvider $dbProvider,
              CommentStore $commentStore,
              UserCache $userCache,
              RowCommentFormatter $rowCommentFormatter,
      Severity: Minor
      Found in includes/specials/SpecialProtectedPages.php - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status