Showing 11,545 of 11,545 total issues
Function domManip
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function domManip( collection, args, callback, ignored ) {
// Flatten any nested arrays
args = flat( args );
Function OoUiMenuTagMultiselectWidget
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OO.ui.MenuTagMultiselectWidget = function OoUiMenuTagMultiselectWidget( config ) {
let $autoCloseIgnore = $( [] );
config = config || {};
Function setActive
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OO.ui.PopupToolGroup.prototype.setActive = function ( value ) {
let containerWidth, containerLeft;
value = !!value;
if ( this.active !== value ) {
this.active = value;
Function deflate_fast
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const deflate_fast = (s, flush) => {
let hash_head; /* head of the hash chain */
let bflush; /* set if current block must be flushed */
Method getFeatureFilePaths
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getFeatureFilePaths() {
// Bypass the current module paths so that these files are served from core,
// instead of the individual skin's module directory.
[ $defaultLocalBasePath, $defaultRemoteBasePath ] =
FileModule::extractBasePaths(
Method tryReset
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function tryReset( User $user, array $reqs ) {
$data = $this->manager->getAuthenticationSessionData( 'reset-pass' );
if ( !$data ) {
return AuthenticationResponse::newAbstain();
}
Method freeLocksOnServer
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function freeLocksOnServer( $lockSrv, array $pathsByType ) {
$status = StatusValue::newGood();
$pathList = array_merge( ...array_values( $pathsByType ) );
Method getHelpInfo
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getHelpInfo( $name, $settings, array $options ) {
$settings = $this->normalizeSettings( $settings );
$typeDef = $this->getTypeDef( $settings[self::PARAM_TYPE] );
// Define ordering. Some are overwritten below, some expected from the TypeDef
Method tempExecute
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function tempExecute( LocalFile $file ): void {
$context = $this->getContext();
$title = $this->getTitle();
$article = $this->getArticle();
$outputPage = $context->getOutput();
Method getInputOOUI
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInputOOUI( $value ) {
$this->mParent->getOutput()->addModules( 'oojs-ui-widgets' );
// Reject nested arrays (T274955)
$value = array_filter( $value, 'is_scalar' );
Method removeDotSegments
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function removeDotSegments( string $urlPath ): string {
$output = '';
$inputOffset = 0;
$inputLength = strlen( $urlPath );
Method validateSignature
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function validateSignature( string $signature ) {
$pstSignature = $this->applyPreSaveTransform( $signature );
if ( $pstSignature === false ) {
// Return early because the rest of the validation uses wikitext parsing, which requires
// the pre-save transform to be applied first, and we just found out that the result of the
Method debugInfo
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function debugInfo( ParserOutput $po ): string {
$text = '';
$limitReportData = $po->getLimitReportData();
// If nothing set it, we can't get it.
Method replaceHeadings
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function replaceHeadings( string $text, array $options ): string {
$skin = $this->resolveSkin( $options );
$useLegacyHeading = $this->options->get( MainConfigNames::ParserEnableLegacyHeadingDOM );
if ( $skin && !$skin->getOptions()['supportsMwHeading'] ) {
$useLegacyHeading = true;
Method getAllowedParams
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAllowedParams() {
$ret = parent::getAllowedParams() + [
'user' => [
ParamValidator::PARAM_TYPE => 'user',
UserDef::PARAM_ALLOWED_USER_TYPES => [ 'name', 'ip', 'temp', 'id', 'interwiki' ],
Method setVals
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function setVals( &$vals, $prefix, $rev ) {
if ( $rev ) {
$title = Title::newFromLinkTarget( $rev->getPageAsLinkTarget() );
if ( isset( $this->props['ids'] ) ) {
$vals["{$prefix}id"] = $title->getArticleID();
Method getAllowedParams
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAllowedParams() {
$settings = self::$settings[$this->getModuleName()];
$ret = [
'prop' => [
Method showSearchForm
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function showSearchForm() {
$out = $this->getOutput();
$out->setPageTitleMsg( $this->msg( 'undelete-search-title' ) );
$fuzzySearch = $this->getRequest()->getVal( 'fuzzy', '1' );
Method __construct
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(
array $options = [],
IContextSource $context = null,
LinkRenderer $linkRenderer = null,
LocalRepo $localRepo = null,
Method buildForm
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function buildForm( IContextSource $context ) {
$mediaTypesText = array_map( function ( $type ) {
// mediastatistics-header-unknown, mediastatistics-header-bitmap,
// mediastatistics-header-drawing, mediastatistics-header-audio,
// mediastatistics-header-video, mediastatistics-header-multimedia,