Showing 11,545 of 11,545 total issues
ContributionsPager
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class ContributionsPager extends RangeChronologicalPager {
/** @inheritDoc */
public $mGroupByDate = true;
TransformationalImageHandler
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class TransformationalImageHandler extends ImageHandler {
/**
* @stable to override
* @param File $image
* @param array &$params Transform parameters. Entries with the keys 'width'
MysqlInstaller
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class MysqlInstaller extends DatabaseInstaller {
/** @inheritDoc */
protected $globalNames = [
'wgDBserver',
ApiParse
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class ApiParse extends ApiBase {
/** @var string|false|null */
private $section = null;
SpecialSearch
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SpecialSearch extends SpecialPage {
/**
* Current search profile. Search profile is just a name that identifies
* the active search tab on the search page (content, discussions...)
* For users tt replaces the set of enabled namespaces from the query
MWExceptionHandler
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class MWExceptionHandler {
/** Error caught and reported by this exception handler */
public const CAUGHT_BY_HANDLER = 'mwe_handler';
/** Error caught and reported by a script entry point */
public const CAUGHT_BY_ENTRYPOINT = 'entrypoint';
LinkRenderer
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class LinkRenderer {
public const CONSTRUCTOR_OPTIONS = [
'renderForComment',
];
GenerateSitemap
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class GenerateSitemap extends Maintenance {
private const GS_MAIN = -2;
private const GS_TALK = -1;
/**
Function formatRequest
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
formatRequest: function ( displayParams, rawParams, method, ajaxOptions ) {
let jsonLayout, phpLayout,
apiUrl = new URL( mw.util.wikiScript( 'api' ), location.origin ).toString(),
items = [
new OO.ui.MenuOptionWidget( {
Function MwRcfiltersUiSavedLinksListWidget
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const SavedLinksListWidget = function MwRcfiltersUiSavedLinksListWidget( controller, model, config ) {
const $labelNoEntries = $( '<div>' )
.append(
$( '<div>' )
.addClass( 'mw-rcfilters-ui-savedLinksListWidget-placeholder-title' )
Function detectOverflow
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function detectOverflow(state, options) {
return __async(this, null, function* () {
var _await$platform$isEle;
if (options === void 0) {
options = {};
Function setup
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setup(props, { attrs, emit }) {
const wrappedModel = useModelWrapper(toRef(props, "modelValue"), emit);
const idAttribute = attrs.id;
const {
computedDisabled,
Function init
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init = jQuery.fn.init = function( selector, context, root ) {
var match, elem;
// HANDLE: $(""), $(null), $(undefined), $(false)
if ( !selector ) {
Function deflateSetDictionary
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const deflateSetDictionary = (strm, dictionary) => {
let dictLength = dictionary.length;
if (deflateStateCheck(strm)) {
Method handleTypeTar
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function handleTypeTar( $moduleName, $destDir, array $info, string $fileType ) {
$info += [ 'src' => null, 'integrity' => null, 'dest' => null ];
if ( $info['src'] === null ) {
throw new LogicException( "Module '$moduleName' must have a 'src' key." );
}
Method securitySensitiveOperationStatus
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function securitySensitiveOperationStatus( $operation ) {
$status = self::SEC_OK;
$this->logger->debug( __METHOD__ . ": Checking $operation" );
Method getRequirements
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getRequirements( array $info, $includeDev ) {
// Quick shortcuts
if ( !$includeDev || !isset( $info['dev-requires'] ) ) {
return $info['requires'] ?? [];
}
Method loadSlotContent
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function loadSlotContent(
SlotRecord $slot,
?string $blobData = null,
?string $blobFlags = null,
?string $blobFormat = null,
Method doMoveInternal
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function doMoveInternal( array $params ) {
$status = $this->newStatus();
[ $srcCont, $srcRel ] = $this->resolveStoragePathReal( $params['src'] );
if ( $srcRel === null ) {
Method getTimeAndDelay
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getTimeAndDelay( $lockFile, $clockSeqSize, $counterSize, $offsetSize ) {
// Get the UID lock file handle
if ( isset( $this->fileHandles[$this->$lockFile] ) ) {
$handle = $this->fileHandles[$this->$lockFile];
} else {