Showing 11,545 of 11,545 total issues
Function configFromStringAndFormat
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function configFromStringAndFormat(config) {
// TODO: Move this to another part of the creation flow to prevent circular deps
if (config._f === hooks.ISO_8601) {
configFromISO(config);
return;
Function resolve
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resolve( depth, deferred, handler, special ) {
return function() {
var that = this,
args = arguments,
mightThrow = function() {
Method checkQuickPermissions
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function checkQuickPermissions(
$action,
User $user,
PermissionStatus $status,
$rigor,
Method getParserOutput
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getParserOutput(
PageRecord $page,
ParserOptions $parserOptions,
?RevisionRecord $revision = null,
int $options = 0
Method addCodeEditingIntro
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function addCodeEditingIntro(
IntroMessageList $messages,
MessageLocalizer $localizer,
Title $title,
Authority $performer
Method attemptQuery
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function attemptQuery(
$sql,
string $fname,
bool $isPermWrite
) {
Method convertByteClassToUnicodeClass
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function convertByteClassToUnicodeClass( $byteClass ) {
$length = strlen( $byteClass );
// Input token queue
$x0 = $x1 = $x2 = '';
// Decoded queue
Method execute
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$params = $this->extractRequestParams();
$prop = array_fill_keys( $params['prop'], true );
Method execute
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$params = $this->extractRequestParams();
$config = $this->getConfig();
if ( !$config->get( MainConfigNames::Feed ) ) {
Method showForm
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function showForm( $oldName, $newName, $warnings, $reason, $moveChecked, $suppressChecked ) {
$performer = $this->getUser();
$formDescriptor = [
'oldusername' => [
Method detectVirus
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function detectVirus( $file ) {
global $wgOut;
$mainConfig = MediaWikiServices::getInstance()->getMainConfig();
$antivirus = $mainConfig->get( MainConfigNames::Antivirus );
$antivirusSetup = $mainConfig->get( MainConfigNames::AntivirusSetup );
Method trackOrphanText
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function trackOrphanText() {
# Wait until the blob_tracking table is available in the replica DB
$dbw = $this->getPrimaryDB();
$dbr = $this->getReplicaDB();
$this->getServiceContainer()->getDBLoadBalancerFactory()->waitForReplication( [ 'timeout' => 100_000 ] );
Method execute
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$dbw = $this->getPrimaryDB();
$config = $this->getConfig();
$specialPageFactory = $this->getServiceContainer()->getSpecialPageFactory();
FileOp
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class FileOp {
/** @var FileBackendStore */
protected $backend;
/** @var LoggerInterface */
protected $logger;
SpecialWatchlist
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SpecialWatchlist extends ChangesListSpecialPage {
/** @var array */
public const WATCHLIST_TAB_PATHS = [
'Special:Watchlist',
'Special:EditWatchlist',
SpecialUpload
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SpecialUpload extends SpecialPage {
private LocalRepo $localRepo;
private UserOptionsLookup $userOptionsLookup;
private NamespaceInfo $nsInfo;
Job
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class Job implements RunnableJob {
/** @var string */
public $command;
/** @var array Array of job parameters */
ActorStore
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ActorStore implements UserIdentityLookup, ActorNormalization {
public const UNKNOWN_USER_NAME = 'Unknown user';
private const LOCAL_CACHE_SIZE = 100;
OldLocalFile
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class OldLocalFile extends LocalFile {
/** @var string|int Timestamp */
protected $requestedTime;
/** @var string Archive name */
ParsoidHandler
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class ParsoidHandler extends Handler {
private RevisionLookup $revisionLookup;
protected SiteConfig $siteConfig;
protected PageConfigFactory $pageConfigFactory;