Showing 11,545 of 11,545 total issues
File PNGMetadataExtractor.php
has 292 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* PNG frame counter and metadata extractor.
*
* Slightly derived from GIFMetadataExtractor.php
File findBadBlobs.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
Function parse
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parse = function ( title, defaultNamespace ) {
let namespace = defaultNamespace === undefined ? NS_MAIN : defaultNamespace;
title = title
// Strip Unicode bidi override characters
Function getFilterRepresentation
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FilterGroup.prototype.getFilterRepresentation = function ( paramRepresentation ) {
let areAnySelected,
oneWasSelected = false;
const defaultParams = this.getDefaultParams(),
expandedParams = $.extend( true, {}, paramRepresentation ),
Function makeApi
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeApi(sinon) {
var collection = {
verify: function resolve() {
each(this, "verify");
},
Consider simplifying this complex logical expression. Open
Open
if (m._isValid == null) {
var flags = getParsingFlags(m),
parsedParts = some.call(flags.parsedDateParts, function (i) {
return i != null;
}),
Function _create
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function() {
var accordionId = this.accordionId = "ui-accordion-" +
(this.element.attr( "id" ) || ++uid),
options = this.options;
Function Datepicker
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Datepicker() {
this.debug = false; // Change this to true to start debugging
this._curInst = null; // The current instance in use
this._keyEvent = false; // If the last event was a key event
this._disabledInputs = []; // List of date picker inputs that have been disabled
Method archiveRevisions
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function archiveRevisions( WikiPage $page, int $id ): bool {
// Given the lock above, we can be confident in the title and page ID values
$namespace = $page->getTitle()->getNamespace();
$dbKey = $page->getTitle()->getDBkey();
ConfigSchemaAggregator
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ConfigSchemaAggregator implements ConfigSchema {
use JsonSchemaTrait;
/** @var array[] Maps config keys to JSON schema structures */
private $schemas = [];
Method getDiffBody
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getDiffBody() {
$this->mCacheHit = true;
// Check if the diff should be hidden from this user
if ( !$this->isContentOverridden ) {
if ( !$this->loadRevisionData() ) {
Method __construct
has 24 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
RevisionStore $revisionStore,
RevisionRenderer $revisionRenderer,
SlotRoleRegistry $slotRoleRegistry,
ParserCache $parserCache,
JobQueueGroup $jobQueueGroup,
Method doCreate
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function doCreate( CommentStoreComment $summary ): PageUpdateStatus {
if ( $this->preventChange ) {
throw new LogicException(
"Content was changed even though preventChange() was called."
);
Method insertRevisionRowOn
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function insertRevisionRowOn(
IDatabase $dbw,
RevisionRecord $rev,
$parentId
) {
TablePager
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class TablePager extends IndexPager {
/** @var string */
protected $mSort;
/** @var stdClass */
BlockManager
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class BlockManager {
/**
* @internal For use by ServiceWiring
*/
public const CONSTRUCTOR_OPTIONS = [
TrivialLanguageConverter
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class TrivialLanguageConverter implements ILanguageConverter {
/**
* @var Language
*/
LoginSignupSpecialPage
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class LoginSignupSpecialPage extends AuthManagerSpecialPage {
/**
* The title of the page to return to after authentication finishes, or the empty string
* when there is no return target.
ApiUpload
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ApiUpload extends ApiBase {
use ApiWatchlistTrait;
/** @var UploadBase|UploadFromChunks */
Method getAllowedParams
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAllowedParams( $flags = 0 ) {
$config = $this->getConfig();
if ( $flags & ApiBase::GET_VALUES_FOR_HELP ) {
$logActions = $this->getAllowedLogActions();
sort( $logActions );