Showing 994 of 1,238 total issues
Method processGroups
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function processGroups( array $groups ): array {
$fixedGroups = [];
foreach ( $groups as $g ) {
$name = $g['name'];
Method tuxLanguageSelector
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function tuxLanguageSelector(): string {
if ( $this->options['language'] === $this->getConfig()->get( 'TranslateDocumentationLanguageCode' ) ) {
$targetLangName = $this->msg( 'translate-documentation-language' )->text();
$targetLanguage = $this->contentLanguage;
} else {
Method makeGroupFacetRows
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function makeGroupFacetRows(
array $groups,
array $counts,
int $level = 0,
string $pathString = ''
Method execute
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$name = $this->getOption( 'name', MessageChangeStorage::DEFAULT_NAME );
if ( !MessageChangeStorage::isValidCdbName( $name ) ) {
$this->fatalError( 'Invalid name' );
}
Method unflatten
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function unflatten( array $flat ): array {
$unflat = [];
if ( $this->parseCLDRPlurals ) {
$unflattenedPlurals = [];
Method getIssues
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getIssues( Message $message, string $targetLanguage ): ValidationIssues {
$issues = new ValidationIssues();
// We skip certain validations if we don't know the expected keywords
$expectedKeywords = UnicodePlural::getPluralKeywords( $targetLanguage );
Function setValues
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Color.prototype.setValues = function (space, vals) {
var values = this.values;
var spaces = this.spaces;
var maxes = this.maxes;
var alpha = 1;
Function requestSelectHandler
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function requestSelectHandler( e ) {
var request = e.target,
$detailsPane = $( '.details.pane' ),
$requestCheckboxes = $( '.request-selector' ),
$selectAll = $( '.request-selector-all' ),
Function hsv
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
convert.rgb.hsv = function (rgb) {
var rdif;
var gdif;
var bdif;
var h;
Function associate
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function associate( event, subGroupId ) {
var $target = $( event.target ),
$parent = $target.parents( '.mw-tpa-group' ),
parentId = $parent.data( 'id' ),
subgroupName = $parent
Function fitWithPointLabels
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fitWithPointLabels(scale) {
// Right, this is really confusing and there is a lot of maths going on here
// The gist of the problem is here: https://gist.github.com/nnnick/696cc9c55f4b0beb8fe9
//
Function update
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update: function(config) {
var me = this;
var i, ilen;
if (!config || typeof config !== 'object') {
Method submitRaw
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function submitRaw( array $data ): bool {
$retainedLines = trim( $data['Titles'] );
$retainedGroups = $retainedLines ? array_map( 'trim', explode( "\n", $retainedLines ) ) : [];
$current = $this->messageGroupSubscription->getUserSubscriptions( $this->getUser() );
Method getCommonFormFields
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getCommonFormFields(): array {
return [
'wpOldTitle' => [
'type' => 'text',
'name' => 'wpOldTitle',
Method preventDirectEditing
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function preventDirectEditing( Title $title, User $user, $action, &$result ) {
if ( self::$allowTargetEdit ) {
return true;
}
Method hasCacheEntry
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function hasCacheEntry(
MessageGroupCache $cache,
MessageCollection $collection,
string $messageKey
): bool {
Method execute
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$this->checkUserRightsAny( self::RIGHT );
$block = $this->getUser()->getBlock();
if ( $block && $block->isSitewide() ) {
$this->dieBlocked( $block );
Method __construct
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct() {
parent::__construct();
$this->addDescription( 'Script for processing message changes in file based message groups' );
$this->addOption(
'group',
Method onBeforeCreateEchoEvent
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function onBeforeCreateEchoEvent(
array &$notifications,
array &$notificationCategories,
array &$notificationIcons
) {
Method addForm
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function addForm(): void {
$formDescriptor = [
'language' => [
'type' => 'text',
'name' => 'language',