Showing 11,545 of 11,545 total issues
MWDebug
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class MWDebug {
/**
* Log lines
*
* @var array
File MessagesFrp.php
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/** Franco-Provençal (arpetan)
*
* @file
* @ingroup Languages
Function ajax
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ajax: function ( parameters, ajaxOptions ) {
const api = this,
apiDeferred = $.Deferred();
parameters = Object.assign( {}, this.defaults.parameters, parameters );
Function buildHeaders
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildHeaders( table, msg ) {
let config = $( table ).data( 'tablesorter' ).config,
maxSeen = 0,
colspanOffset = 0,
$tableHeaders = $( [] ),
Function MwRcfiltersUiSaveFiltersPopupButtonWidget
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SaveFiltersPopupButtonWidget = function MwRcfiltersUiSaveFiltersPopupButtonWidget( controller, model, config ) {
const $popupContent = $( '<div>' );
config = config || {};
Function toggle
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OO.ui.MenuSelectWidget.prototype.toggle = function ( visible ) {
visible = ( visible === undefined ? !this.visible : !!visible ) && !!this.items.length;
const change = visible !== this.isVisible();
if ( visible && !this.warnedUnattached && !this.isElementAttached() ) {
Function formatDate
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
formatDate: function (format, date, settings) {
if (!date)
return '';
var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
Function widget
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.widget = function( name, base, prototype ) {
var fullName, existingConstructor, constructor, basePrototype,
namespace = name.split( "." )[ 0 ];
name = name.split( "." )[ 1 ];
Method doNormalizeJsonSchema
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function doNormalizeJsonSchema(
array $schema,
array &$defs,
string $source,
string $propertyName,
Method loadFromDefinition
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function loadFromDefinition() {
if ( $this->definition === null ) {
return;
}
Method getOneModuleResponse
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getOneModuleResponse( Context $context, $name, Module $module ) {
$only = $context->getOnly();
// Important: Do not cache minifications of embedded modules
// This is especially for the private 'user.options' module,
// which varies on every pageview and would explode the cache (T84960)
Method loadRevisionData
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function loadRevisionData() {
if ( $this->mRevisionsLoaded ) {
return $this->isContentOverridden ||
( $this->mOldRevisionRecord !== null && $this->mNewRevisionRecord !== null );
}
Method readCentralDirectory
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function readCentralDirectory( $offset, $size ) {
$block = $this->getBlock( $offset, $size );
$fixedInfo = [
'signature' => [ 'string', 4 ],
Method handleCORS
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function handleCORS() {
$originParam = $this->getParameter( 'origin' ); // defaults to null
if ( $originParam === null ) {
// No origin parameter, nothing to do
return true;
Method checkConditionalRequestHeaders
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function checkConditionalRequestHeaders( $module ) {
if ( $this->mInternalMode ) {
// No headers to check in internal mode
return true;
}
Method execute
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( $par ) {
$this->setHeaders();
$this->outputHeader();
$out = $this->getOutput();
Method transform
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function transform( $params, $flags = 0 ) {
$thumbnailEpoch = MediaWikiServices::getInstance()->getMainConfig()
->get( MainConfigNames::ThumbnailEpoch );
do {
Method setOriginal
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setOriginal( $rev, $originalRendering ) {
if ( $originalRendering instanceof ParsoidRenderID ) {
$renderId = $originalRendering;
// If the client asked for a render ID, load original data from stash
Method moveIllegalPage
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function moveIllegalPage( $row ) {
$legalChars = Title::legalChars();
$legalizedUnprefixed = preg_replace_callback( "/([^$legalChars])/",
[ $this, 'hexChar' ],
$row->page_title );
Method moveInconsistentPage
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function moveInconsistentPage( $row, Title $title ) {
$titleImpossible = $title->getInterwiki() || !$title->canExist();
if ( $title->exists( IDBAccessObject::READ_LATEST ) || $titleImpossible ) {
if ( $titleImpossible ) {
$prior = $title->getPrefixedDBkey();