Showing 11,545 of 11,545 total issues
PagerNavigationBuilder
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class PagerNavigationBuilder {
/** @var MessageLocalizer */
private $messageLocalizer;
/** @var PageReference */
MapCacheLRU
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class MapCacheLRU implements ExpirationAwareness {
/** @var array Map of (key => value) */
private $cache = [];
/** @var array Map of (key => (UNIX timestamp, (field => UNIX timestamp))) */
private $timestamps = [];
Consider simplifying this complex logical expression. Open
Open
if ( $this->getAuthority()->probablyCan( 'edit', $title ) ) {
// Builds CSS class for talk page links
$isTalkClass = $isTalk ? ' istalk' : '';
// Whether the user is editing the page
$isEditing = $onPage && ( $action == 'edit' || $action == 'submit' );
ImageListPager
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ImageListPager extends TablePager {
/** @var string[]|null */
protected $mFieldNames = null;
/**
PPFrame_Hash
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class PPFrame_Hash implements Stringable, PPFrame {
/**
* @var Parser
*/
TempUserCreator
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class TempUserCreator implements TempUserConfig {
private RealTempUserConfig $config;
private UserFactory $userFactory;
private AuthManager $authManager;
private CentralIdLookup $centralIdLookup;
UserOptionsManager
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class UserOptionsManager extends UserOptionsLookup {
/**
* @internal For use by ServiceWiring
*/
PageContentHelper
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class PageContentHelper {
/**
* The maximum cache duration for page content.
*
CategoryViewer
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class CategoryViewer extends ContextSource {
use ProtectedHookAccessorTrait;
use DeprecationHelper;
/** @var int */
CategoryLinksTable
has 22 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class CategoryLinksTable extends TitleLinksTable {
/**
* @var array Associative array of new links, with the category name in the
* key. The value is a list consisting of the sort key prefix and the sort
* key.
Consider simplifying this complex logical expression. Open
Open
if (
( $params['omit_bots'] && $this->mAttribs['rc_bot'] ) ||
( $params['omit_anon'] && !$performer->isRegistered() ) ||
( $params['omit_user'] && $performer->isRegistered() ) ||
( $params['omit_minor'] && $this->mAttribs['rc_minor'] ) ||
Function batchRequest
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function batchRequest( batch ) {
if ( !batch.length ) {
return;
}
Function _sfc_render$a
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
const _component_cdx_label = resolveComponent("cdx-label");
return openBlock(), createElementBlock(
"div",
{
Function _sfc_render$8
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
const _component_cdx_icon = resolveComponent("cdx-icon");
const _component_cdx_menu = resolveComponent("cdx-menu");
return openBlock(), createElementBlock("div", {
class: normalizeClass(["cdx-select-vue", _ctx.rootClasses]),
Function makeApi
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeApi(sinon) {
// Adapted from https://developer.mozilla.org/en/docs/ECMAScript_DontEnum_attribute#JScript_DontEnum_Bug
var hasDontEnumBug = (function () {
var obj = {
Function localeWeekdaysParse
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function localeWeekdaysParse(weekdayName, format, strict) {
var i, mom, regex;
if (this._weekdaysParseExact) {
return handleStrictParse$1.call(this, weekdayName, format, strict);
Function deflate_rle
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const deflate_rle = (s, flush) => {
let bflush; /* set if current block must be flushed */
let prev; /* byte at distance one to match */
let scan, strend; /* scan goes up to strend for length of run */
Function defineStore
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function defineStore(
// TODO: add proper types from above
idOrOptions, setup, setupOptions) {
let id;
let options;
Method updateRecentChange
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function updateRecentChange(
IDatabase $dbw,
RevisionRecord $current,
RevisionRecord $target
) {
Method provideSessionInfo
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function provideSessionInfo( WebRequest $request ) {
$sessionId = $this->getCookie( $request, $this->params['sessionName'], '' );
$info = [
'provider' => $this,
'forceHTTPS' => $this->getCookie( $request, 'forceHTTPS', '', false )