Showing 11,545 of 11,545 total issues
Function startOf
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function startOf(units) {
var time, startOfDate;
units = normalizeUnits(units);
if (units === undefined || units === 'millisecond' || !this.isValid()) {
return this;
Function OoUiComboBoxInputWidget
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OO.ui.ComboBoxInputWidget = function OoUiComboBoxInputWidget( config ) {
// Configuration initialization
config = Object.assign( {
autocomplete: false
}, config );
Function keydown
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
keydown: function( event ) {
var allowed, curVal, newVal, step,
index = $( event.target ).data( "ui-slider-handle-index" );
switch ( event.keyCode ) {
Function winnow_results
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AbstractChosen.prototype.winnow_results = function() {
var escapedQuery, fix, i, len, option, prefix, query, ref, regex, results, results_group, search_match, startpos, suffix, text;
this.no_results_clear();
results = 0;
query = this.get_search_text();
Method getCascadeProtectionSourcesInternal
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getCascadeProtectionSourcesInternal(
PageIdentity $page, bool $shortCircuit = false
) {
if ( !$page->canExist() ) {
return $shortCircuit ? false : [ [], [] ];
Method newPoolWorkArticleView
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function newPoolWorkArticleView(
PageRecord $page,
ParserOptions $parserOptions,
RevisionRecord $revision,
int $options
Method updateRedirectTarget
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function updateRedirectTarget(
PageIdentity $page,
?LinkTarget $target,
?bool $lastRevWasRedirect = null
) {
Method addOneModuleResponse
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function addOneModuleResponse(
Context $context, MinifierState $minifier, $name, Module $module, &$headers
) {
$only = $context->getOnly();
$debug = (bool)$context->getDebug();
Method doSectionLinks
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function doSectionLinks(
$comment,
$selfLinkTarget = null,
$samePage = false,
$wikiId = false
Method updateOpStats
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function updateOpStats( string $op, array $keyInfo ) {
$deltasByMetric = [];
foreach ( $keyInfo as $indexOrKey => $keyOrSizes ) {
if ( is_array( $keyOrSizes ) ) {
Method getMediaType
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getMediaType( string $path = null, string $mime = null ): string {
if ( !$mime && !$path ) {
return MEDIATYPE_UNKNOWN;
}
Method getInputCodex
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInputCodex( $value, $hasErrors ) {
$optionDescriptions = $this->getOptionDescriptions();
$html = '';
// Iterate over an array of options and return the HTML markup.
Method findVariantLink
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) {
# If the article has already existed, there is no need to
# check it again. Otherwise it may cause a fault.
if ( $nt instanceof LinkTarget ) {
$nt = Title::castFromLinkTarget( $nt );
Method collapseData
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function collapseData() {
$this->exifGPStoNumber( 'GPSLatitude' );
$this->exifGPStoNumber( 'GPSDestLatitude' );
$this->exifGPStoNumber( 'GPSLongitude' );
$this->exifGPStoNumber( 'GPSDestLongitude' );
Method initQueryBuilderForTable
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function initQueryBuilderForTable( string $table, string $select ): SelectQueryBuilder {
$prefix = $this->getPrefix( $table );
$queryBuilder = $this->getDB()->newSelectQueryBuilder();
$joinPageTable = $select !== 'ids';
Method getAllowedParams
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAllowedParams() {
$allowedParams = $this->buildCommonApiParams() + [
'what' => [
ParamValidator::PARAM_TYPE => [
'title',
Method execute
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( $par ) {
$this->useTransactionalTimeLimit();
$this->checkReadOnly();
$this->setHeaders();
$this->outputHeader();
Method run
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run() {
if ( !$this->redirTitle ) {
$this->setLastError( 'Invalid title' );
return false;
Method toJsonArray
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function toJsonArray(): array {
// WARNING: When changing how this class is serialized, follow the instructions
// at <https://www.mediawiki.org/wiki/Manual:Parser_cache/Serialization_compatibility>!
$data = [
Method insert
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function insert( IDatabase $dbw = null ) {
$services = MediaWikiServices::getInstance();
$dbw = $dbw ?: $services->getConnectionProvider()->getPrimaryDatabase();
$this->timestamp ??= wfTimestampNow();