Showing 11,545 of 11,545 total issues
Method runMultiHttp
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function runMultiHttp( array $reqs, array $opts = [] ) {
$httpOptions = [
'timeout' => $opts['reqTimeout'] ?? $this->reqTimeout,
'connectTimeout' => $opts['connTimeout'] ?? $this->connTimeout,
'logger' => $this->logger,
Method getMultiWithUnionSetCallback
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
final public function getMultiWithUnionSetCallback(
ArrayIterator $keyedIds, $ttl, callable $callback, array $opts = []
) {
$checkKeys = $opts['checkKeys'] ?? [];
$minAsOf = $opts['minAsOf'] ?? self::MIN_TIMESTAMP_NONE;
Method validate
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function validate( $reader ) {
// First, move through anything that isn't an element, and
// handle any processing instructions with the callback
do {
if ( !$this->readNext( $reader ) ) {
Method __construct
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(
ServiceOptions $options,
BlockRestrictionStore $blockRestrictionStore,
BlockPermissionCheckerFactory $blockPermissionCheckerFactory,
BlockUtils $blockUtils,
Method getNewRevision
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getNewRevision() {
$undoRev = $this->revisionLookup->getRevisionById( $this->undo );
$oldRev = $this->revisionLookup->getRevisionById( $this->undoafter );
$curRev = $this->curRev;
Method getInputOOUI
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInputOOUI( $value ) {
$this->mParent->getOutput()->addModuleStyles( 'mediawiki.widgets.SelectWithInputWidget.styles' );
$valInSelect = false;
if ( $value !== false ) {
Method searchPreferences
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function searchPreferences( $context, &$defaultPreferences ) {
$defaultPreferences['search-special-page'] = [
'type' => 'api',
];
Method animateFilterAndLang
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function animateFilterAndLang( $name ) {
$this->debug( "animate filter for tag $name" );
if ( $this->reader->nodeType !== XMLReader::ELEMENT ) {
return;
}
Method wfMerge
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function wfMerge(
string $old,
string $mine,
string $yours,
?string &$simplisticMergeAttempt,
Method appendInterwikiMap
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function appendInterwikiMap( $property, $filter ) {
$local = $filter ? $filter === 'local' : null;
$params = $this->extractRequestParams();
$langCode = $params['inlanguagecode'] ?? '';
Method importScopedSession
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function importScopedSession( array $params ) {
if ( strlen( $params['sessionId'] ) &&
SessionManager::getGlobalSession()->isPersistent()
) {
// Check to avoid sending random cookies for the wrong users.
Method processVerificationError
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function processVerificationError( $details ) {
switch ( $details['status'] ) {
/** Statuses that only require name changing */
case UploadBase::MIN_LENGTH_PARTNAME:
$this->showRecoverableUploadError( $this->msg( 'minlength1' )->escaped() );
Method fetchUser
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function fetchUser( $username, $writing = true ) {
$parts = explode( $this->getConfig()->get( MainConfigNames::UserrightsInterwikiDelimiter ),
$username );
if ( count( $parts ) < 2 ) {
$name = trim( $username );
File AllMessagesTablePager.php
has 265 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
Method showPermissionInternal
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function showPermissionInternal( array $messages, $action = null ) {
$services = MediaWikiServices::getInstance();
$groupPermissionsLookup = $services->getGroupPermissionsLookup();
// For some actions (read, edit, create and upload), display a "login to do this action"
Method addCategoryLinks
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function addCategoryLinks( array $categories ) {
if ( !$categories ) {
return;
}
Method addToDatabase
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function addToDatabase() {
$this->load();
if ( !$this->mToken ) {
$this->setToken(); // init token
}
Method execute
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$performerName = $this->getOption( 'performer', false );
$reason = $this->getOption( 'reason', '' );
$unblocking = $this->getOption( 'unblock', false );
$reblock = $this->hasOption( 'reblock' );
Method getHelp
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getHelp(): string {
$screenWidth = 80; // TODO: Calculate this!
$tab = " ";
$descWidth = $screenWidth - ( 2 * strlen( $tab ) );
File copyFileBackend.php
has 265 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Copy all files in some containers of one backend to another.
*
* This program is free software; you can redistribute it and/or modify