Showing 11,545 of 11,545 total issues
Function dayOfYearFromWeekInfo
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dayOfYearFromWeekInfo(config) {
var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
w = config._w;
if (w.GG != null || w.W != null || w.E != null) {
Function defineLocale
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function defineLocale(name, config) {
if (config !== null) {
var locale,
parentConfig = baseConfig;
config.abbr = name;
Function updateInputSize
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OO.ui.TagMultiselectWidget.prototype.updateInputSize = function () {
if ( this.inputPosition === 'inline' && !this.isDisabled() ) {
if ( this.input.$input[ 0 ].scrollWidth === 0 ) {
// Input appears to be attached but not visible.
// Don't attempt to adjust its size, because our measurements
Function isElementInViewport
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OO.ui.mixin.FloatableElement.prototype.isElementInViewport = function ( $element, $container ) {
const direction = $element.css( 'direction' );
const elemRect = $element[ 0 ].getBoundingClientRect();
let contRect;
Function adjustSize
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OO.ui.MultilineTextInputWidget.prototype.adjustSize = function ( force ) {
if ( force || this.$input.val() !== this.valCache ) {
if ( this.autosize ) {
this.$clone
.val( this.$input.val() )
Function effect
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
effect: function( /* effect, options, speed, callback */ ) {
var args = _normalizeArguments.apply( this, arguments ),
mode = args.mode,
queue = args.queue,
effectMethod = $.effects.effect[ args.effect ],
Function _destroy
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_destroy: function() {
if ( this.xhr ) {
this.xhr.abort();
}
Function _generatePosition
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_generatePosition: function(event) {
var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);
var pageX = event.pageX;
var pageY = event.pageY;
Function createLogger
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createLogger (ref) {
if ( ref === void 0 ) ref = {};
var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
Function deflateInit2
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const deflateInit2 = (strm, level, method, windowBits, memLevel, strategy) => {
if (!strm) { // === Z_NULL
return Z_STREAM_ERROR;
}
Method setNotificationTimestampsForUser
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setNotificationTimestampsForUser(
UserIdentity $user,
$timestamp,
array $targets = []
): bool {
Method refreshSessionInfo
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function refreshSessionInfo( SessionInfo $info, WebRequest $request, &$metadata ) {
$missingKeys = array_diff(
[ 'centralId', 'appId', 'token' ],
array_keys( $metadata )
);
Method getWatchedItemsWithRCInfoQueryFilterConds
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getWatchedItemsWithRCInfoQueryFilterConds(
IReadableDatabase $dbr,
User $user,
array $options
) {
Method loadFromSubmission
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function loadFromSubmission( array $data ) {
$fields = array_filter( $this->getFieldInfo(), static function ( $info ) {
return $info['type'] !== 'null';
} );
if ( !$fields ) {
Method getAuthenticationRequests
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAuthenticationRequests( $action, UserIdentity $user = null ) {
$options = [];
$providerAction = $action;
// Figure out which providers to query
Method getAuthenticationRequestsInternal
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getAuthenticationRequestsInternal(
$providerAction, array $options, array $providers, UserIdentity $user = null
) {
$user = $user ?: RequestContext::getMain()->getUser();
$options['username'] = $user->isRegistered() ? $user->getName() : null;
Method waitForSlotOrNotif
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function waitForSlotOrNotif( $doWakeup, $timeout = null ) {
if ( $this->slot !== null ) {
return Status::newGood( PoolCounter::LOCK_HELD ); // already acquired
}
Method doStreamFile
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function doStreamFile( array $params ) {
$status = $this->newStatus();
$flags = !empty( $params['headless'] ) ? HTTPFileStreamer::STREAM_HEADLESS : 0;
Method attempt
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function attempt( array $performOps, array $opts ) {
$status = StatusValue::newGood();
$n = count( $performOps );
if ( $n > self::MAX_BATCH_SIZE ) {
Method open
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function open( $server, $user, $password, $db, $schema, $tablePrefix ) {
$this->close( __METHOD__ );
if ( $schema !== null ) {
throw $this->newExceptionAfterConnectError( "Got schema '$schema'; not supported." );