Showing 11,545 of 11,545 total issues
Method makeSearchButtonInternal
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function makeSearchButtonInternal( $mode, $searchData, $attrs = [] ) {
switch ( $mode ) {
case 'go':
$attrs['value'] ??= wfMessage( 'searcharticle' )->text();
return Html::element(
Method subPageSubtitleInternal
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function subPageSubtitleInternal() {
$services = MediaWikiServices::getInstance();
$linkRenderer = $services->getLinkRenderer();
$out = $this->getOutput();
$title = $out->getTitle();
Method getInputHTML
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInputHTML( $value ) {
if ( !$this->isPersistent() ) {
$value = '';
}
Method generateSkinOptions
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function generateSkinOptions( User $user, IContextSource $context, array $validSkinNames ) {
$ret = [];
$mptitle = Title::newMainPage();
$previewtext = $context->msg( 'skin-preview' )->escaped();
Method parsoidTransform
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function parsoidTransform(
ParserOutput $po, ?ParserOptions $popts, array &$options
): ParserOutput {
// TODO will use HTMLHolder in the future
$doc = null;
Method mainLoginForm
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function mainLoginForm( array $requests, $msg = '', $msgtype = 'error' ) {
$user = $this->getUser();
$out = $this->getOutput();
// FIXME how to handle empty $requests - restart, or no form, just an error message?
Method execute
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$this->useTransactionalTimeLimit();
$user = $this->getUser();
$params = $this->extractRequestParams();
Method getAllowedParams
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAllowedParams() {
$retval = [
'title' => [
ParamValidator::PARAM_TYPE => 'string',
],
Method __construct
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(
ApiQuery $query,
$moduleName,
NamespaceInfo $namespaceInfo,
GenderCache $genderCache,
Method getBlockDetails
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getBlockDetails(
Block $block,
$language = null
) {
$language ??= $this->getLanguage();
Method getAllowedParams
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAllowedParams( $flags = 0 ) {
$result = [
'titles' => [
ParamValidator::PARAM_ISMULTI => true,
ApiBase::PARAM_HELP_MSG => 'api-pageset-param-titles',
Method execute
has 41 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 execute
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( $par ) {
$request = $this->getRequest();
$out = $this->getOutput();
// Fetch the search term
Method execute
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( $sub ) {
$this->setHeaders();
$out = $this->getOutput();
$this->addHelpLink( 'Help:RestSandbox' );
Method getClientSideLibraries
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getClientSideLibraries() {
$this->addTocSubSection( $this->msg( 'version-libraries-client' )->text(), 'mw-version-libraries-client' );
$out = Html::element(
'h3',
Method dispatch
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function dispatch() {
// the various namespaces supported by Special:Redirect
switch ( $this->mType ) {
case 'user':
$status = $this->dispatchUser();
Method __construct
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(
IContextSource $context,
HookContainer $hookContainer,
LinkBatchFactory $linkBatchFactory,
IConnectionProvider $dbProvider,
Method getImageParams
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getImageParams( $handler ) {
if ( $handler ) {
$handlerClass = get_class( $handler );
} else {
$handlerClass = '';
Method handleDoubleUnderscore
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function handleDoubleUnderscore( $text ) {
# The position of __TOC__ needs to be recorded
$mw = $this->magicWordFactory->get( 'toc' );
if ( $mw->match( $text ) ) {
$this->mShowToc = true;
Method doBatchPush
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function doBatchPush( array $jobs, $flags ) {
// Convert the jobs into field maps (de-duplicated against each other)
$items = []; // (job ID => job fields map)
foreach ( $jobs as $job ) {
$item = $this->getNewJobFields( $job );