Showing 11,545 of 11,545 total issues
Method initialize
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function initialize( $mode = self::LOAD_ONLY ) {
if ( $this->mName === null && $this->mID === null ) {
throw new RuntimeException( __METHOD__ . ' has both names and IDs null' );
} elseif ( $this->mID === null ) {
$where = [ 'cat_title' => $this->mName ];
Method fetchFirstLetterData
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function fetchFirstLetterData() {
// Generate data from serialized data file
if ( isset( self::TAILORING_FIRST_LETTERS[$this->locale] ) ) {
$letters = require __DIR__ . "/data/first-letters-root.php";
// Append additional characters
Method searchQuery
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function searchQuery( $term, $fulltext ) {
# Get the SQL fragment for the given term
$searchstring = $this->parseQuery( $term );
// We need a separate query here so gin does not complain about empty searches
Method newForCategorization
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function newForCategorization(
$timestamp,
PageIdentity $categoryTitle,
?UserIdentity $user,
$comment,
Method execute
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$this->output( "Looking for pages with page_latest set to 0...\n" );
$dbw = $this->getPrimaryDB();
$conds = [ 'page_latest' => 0 ];
if ( $this->hasOption( 'regenerate-all' ) ) {
Method scanRevisionsByTimestamp
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function scanRevisionsByTimestamp( $fromTimestamp, $total ) {
$count = 0;
$lastRevId = 0;
$firstRevId = 0;
$lastTimestamp = $fromTimestamp;
Method doDBUpdates
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function doDBUpdates() {
$batchSize = $this->getBatchSize();
$dbw = $this->getDB( DB_PRIMARY );
if ( !$dbw->fieldExists( 'revision', 'rev_comment_id', __METHOD__ ) ) {
File WatchlistManager.php
has 251 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
File MessagesSa.php
has 251 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/** Sanskrit (संस्कृतम्)
*
* @file
* @ingroup Languages
File MessagesPt_br.php
has 251 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/** Brazilian Portuguese (português do Brasil)
*
* @file
* @ingroup Languages
Function onModelUpdate
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ChangesListWrapperWidget.prototype.onModelUpdate = function (
$changesListContent, $fieldset, noResultsDetails, isInitialDOM, from
) {
const $message = $( '<div>' )
.addClass( 'mw-rcfilters-ui-changesListWrapperWidget-results' ),
Function getBoundingClientRect
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
if (includeScale === void 0) {
includeScale = false;
}
if (isFixedStrategy === void 0) {
Function internalStop
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
internalStop: function internalStop() {
var requiredCalls = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
config.blocking = true;
var test = this;
var pauseId = this.nextPauseId++;
Function toolbarChanged
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toolbarChanged() {
var field = this;
var params = {};
// Detect if field is a select menu or a checkbox
Function configFromISO
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function configFromISO(config) {
var i,
l,
string = config._i,
match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
Function select
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function select( selector, context, results, seed ) {
var i, tokens, token, type, find,
compiled = typeof selector === "function" && selector,
match = !seed && tokenize( ( selector = compiled.selector || selector ) );
Consider simplifying this complex logical expression. Open
Open
if ( ( mappedTypes || origType === handleObj.origType ) &&
( !handler || handler.guid === handleObj.guid ) &&
( !tmp || tmp.test( handleObj.namespace ) ) &&
( !selector || selector === handleObj.selector ||
selector === "**" && handleObj.selector ) ) {
Function OoUiTool
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OO.ui.Tool = function OoUiTool( toolGroup, config ) {
// Allow passing positional parameters inside the config object
if ( OO.isPlainObject( toolGroup ) && config === undefined ) {
config = toolGroup;
toolGroup = config.toolGroup;
Consider simplifying this complex logical expression. Open
Open
if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
var c = $(o.containment);
var ce = c[0]; if(!ce) return;
var co = c.offset();
var over = ($(ce).css("overflow") != 'hidden');
Function _mouseCapture
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_mouseCapture: function( event ) {
var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,
that = this,
o = this.options;