Showing 11,545 of 11,545 total issues
Function MwWidgetsTableWidget
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mw.widgets.TableWidget = function MwWidgetsTableWidget( config ) {
// Configuration initialization
config = config || {};
// Parent constructor
Function size$1
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const size$1 = function(options) {
if (options === void 0) {
options = {};
}
return {
Function _sfc_render$o
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
const _component_cdx_input_chip = resolveComponent("cdx-input-chip");
return openBlock(), createElementBlock(
"div",
{
Function _sfc_render$i
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
const _component_cdx_text_input = resolveComponent("cdx-text-input");
const _component_cdx_icon = resolveComponent("cdx-icon");
const _component_cdx_button = resolveComponent("cdx-button");
const _component_cdx_menu = resolveComponent("cdx-menu");
Method getApplicableBlock
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getApplicableBlock(
string $action,
User $user,
string $rigor,
$page,
Method run
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run( $action, $module ) {
$actions = [ 'update', 'verify', 'make-sri', 'make-cdx' ];
if ( !in_array( $action, $actions ) ) {
$this->error( "Invalid action.\n\nMust be one of " . implode( ', ', $actions ) . '.' );
return false;
Method showHeader
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function showHeader(): void {
$out = $this->context->getOutput();
$user = $this->context->getUser();
if ( $this->isConflict ) {
$this->addExplainConflictHeader();
Method saveRevision
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function saveRevision( CommentStoreComment $summary, int $flags = 0 ) {
$this->setFlags( $flags );
if ( $this->wasCommitted() ) {
throw new RuntimeException(
Method collapseContactInfo
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function collapseContactInfo( array $vals ) {
if ( !( isset( $vals['CiAdrExtadr'] )
|| isset( $vals['CiAdrCity'] )
|| isset( $vals['CiAdrCtry'] )
|| isset( $vals['CiEmailWork'] )
Method execute
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$pUser = $this->getUser();
// Deny if the user is blocked and doesn't have the full 'userrights' permission.
// This matches what Special:UserRights does for the web UI.
Method formatRevisionRow
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function formatRevisionRow( $row, $earliestLiveTime, $remaining ) {
$revRecord = $this->revisionStore->newRevisionFromArchiveRow(
$row,
IDBAccessObject::READ_NORMAL,
$this->mTargetObj
Method register
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function register( Parser $parser, ServiceOptions $options ) {
$options->assertRequiredOptions( self::REGISTER_OPTIONS );
$allowDisplayTitle = $options->get( MainConfigNames::AllowDisplayTitle );
$allowSlowParserFunctions = $options->get( MainConfigNames::AllowSlowParserFunctions );
Method doExecuteJob
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function doExecuteJob( RunnableJob $job ) {
$jType = $job->getType();
$msg = $job->toString() . " STARTING";
$this->logger->debug( $msg, [ 'job_type' => $job->getType() ] );
$this->debugCallback( $msg );
Method newLogEntry
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function newLogEntry( $timestamp,
$logPage, $user, $actionComment, $ip,
$type, $action, $target, $logComment, $params, $newId = 0, $actionCommentIRC = '',
$revId = 0, $isPatrollable = false, $forceBotFlag = null
) {
Method trackRevisions
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function trackRevisions() {
$dbw = $this->getPrimaryDB();
$dbr = $this->getReplicaDB();
$textClause = $this->getTextClause();
Method doPerfTest
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function doPerfTest( FileBackend $backend ) {
$ops1 = [];
$ops2 = [];
$ops3 = [];
$ops4 = [];
Method execute
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
if ( !$this->hasOption( 'delete' ) ) {
$this->output( "Use --delete to actually confirm this script\n" );
return;
}
File SlotRecord.php
has 293 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* Value object representing a content slot associated with a page revision.
*
* This program is free software; you can redistribute it and/or modify
File MessagesEl.php
has 293 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/** Greek (Ελληνικά)
*
* @file
* @ingroup Languages
File UserAuthority.php
has 292 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