includes/specials/SpecialProtectedPages.php
Method execute
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( $par ) {
$this->setHeaders();
$this->outputHeader();
$this->getOutput()->addModuleStyles( 'mediawiki.special' );
$this->addHelpLink( 'Help:Protected_pages' );
Method showOptions
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function showOptions( $type, $level, $filters ) {
$formDescriptor = [
'namespace' => [
'class' => HTMLSelectNamespace::class,
'name' => 'namespace',
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
LinkBatchFactory $linkBatchFactory,
IConnectionProvider $dbProvider,
CommentStore $commentStore,
UserCache $userCache,
RowCommentFormatter $rowCommentFormatter,