Showing 11,545 of 11,545 total issues
Function animateClass
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.effects.animateClass = function( value, duration, easing, callback ) {
var o = $.speed( duration, easing, callback );
return this.queue( function() {
var animated = $( this ),
Function Deflate
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Deflate(options) {
this.options = common.assign({
level: Z_DEFAULT_COMPRESSION,
method: Z_DEFLATED,
chunkSize: 16384,
Function _clear
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_clear: function(event, noPropagation) {
this.reverting = false;
// We delay all events that have to be triggered to after the point where the placeholder has been removed and
// everything else normalized again
Consider simplifying this complex logical expression. Open
Open
if (!s || s.strm !== strm || (s.status !== INIT_STATE &&
//#ifdef GZIP
s.status !== GZIP_STATE &&
//#endif
s.status !== EXTRA_STATE &&
Method getNamespaceRestrictionLevels
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getNamespaceRestrictionLevels( $index, UserIdentity $user = null ): array {
if ( !isset( $this->options->get( MainConfigNames::NamespaceProtection )[$index] ) ) {
// All levels are valid if there's no namespace restriction.
// But still filter by user, if necessary
$levels = $this->options->get( MainConfigNames::RestrictionLevels );
Method run
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run() {
$updateRowsPerQuery = MediaWikiServices::getInstance()->getMainConfig()->get(
MainConfigNames::UpdateRowsPerQuery );
$userId = $this->params['userId'];
$maxWatchlistId = $this->params['maxWatchlistId'];
Method getOldIDFromRequest
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getOldIDFromRequest() {
$this->mRedirectUrl = false;
$request = $this->getContext()->getRequest();
$oldid = $request->getIntOrNull( 'oldid' );
Method getWatchedItemsWithRCInfoQueryFields
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getWatchedItemsWithRCInfoQueryFields( array $options ) {
$fields = [
'rc_id',
'rc_namespace',
'rc_title',
Method rasterize
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function rasterize( $svg ) {
$svgConverter = MediaWikiServices::getInstance()->getMainConfig()->get( MainConfigNames::SVGConverter );
$svgConverterPath = MediaWikiServices::getInstance()->getMainConfig()->get( MainConfigNames::SVGConverterPath );
// This code should be factored out to a separate method on SvgHandler, or perhaps a separate
// class, with a separate set of configuration settings.
Method updateRevision
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateRevision( int $revId = 0 ) {
if ( $this->wasCommitted() ) {
throw new RuntimeException(
'saveRevision() or updateRevision() has already been called on this PageUpdater!'
);
Method execute
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( $skipcache = false ) {
if ( !$this->cacheable || $skipcache ) {
$status = $this->poolCounter->acquireForMe();
} else {
if ( $this->isFastStaleEnabled() ) {
Method format
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function format( $diff ) {
$xi = $yi = 1;
$block = false;
$context = [];
Method getDirListPageInternal
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getDirListPageInternal( $fullCont, $dir, &$after, $limit, array $params ) {
$dirs = [];
if ( $after === INF ) {
return $dirs; // nothing more
}
Method ingestFreshFileStats
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
final protected function ingestFreshFileStats( array $stats, $latest ) {
$success = true;
foreach ( $stats as $path => $stat ) {
if ( is_array( $stat ) ) {
Method doConcatenate
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function doConcatenate( array $params ) {
$status = $this->newStatus();
$tmpPath = $params['dst'];
unset( $params['latest'] );
Method readDirectory
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function readDirectory() {
$dirSectorId = $this->header['first_dir_sector'];
$binaryDir = '';
$seenSectorIds = [];
while ( $dirSectorId !== 0xFFFFFFFE ) {
Method fromText
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function fromText( DatabasePostgres $db, $table, $field ) {
$q = <<<SQL
SELECT
attnotnull, attlen, conname AS conname,
atthasdef,
Method computeServerState
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function computeServerState( int $i, ?array $previousState ) {
$startTime = $this->getCurrentTime();
// Double check for circular recursion in computeServerStates()/getWeightScale().
// Mainly, connection attempts should use LoadBalancer::getServerConnection()
// rather than something that will pick a server based on the server states.
Method doBatchLookups
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function doBatchLookups() {
# Do a link batch query
$this->mResult->seek( 0 );
$parentRevIds = [];
$this->mParentLens = [];
Method getInputOOUI
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInputOOUI( $value ) {
$this->mParent->getOutput()->addModuleStyles( 'mediawiki.widgets.SelectWithInputWidget.styles' );
# TextInput
$textAttribs = [