Showing 994 of 1,238 total issues
Method getTranslatableLanguages
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getTranslatableLanguages() {
$groupConfiguration = $this->getConfiguration();
if ( !isset( $groupConfiguration['LANGUAGES'] ) ) {
// No LANGUAGES section in the configuration.
return null;
Function drawBackground
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drawBackground: function(pt, vm, ctx, tooltipSize) {
ctx.fillStyle = vm.backgroundColor;
ctx.strokeStyle = vm.borderColor;
ctx.lineWidth = vm.borderWidth;
var xAlign = vm.xAlign;
Function draw
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function() {
var ctx = this._chart.ctx;
var vm = this._view;
var pixelMargin = (vm.borderAlign === 'inner') ? 0.33 : 0;
var arc = {
Function getBaseModel
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getBaseModel(tooltipOpts) {
var globalDefaults = core_defaults.global;
return {
// Positioning
Method execute
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$template =
<<<'XML'
<?xml version="1.0" encoding="UTF-8"?>
<graphml
Function _drawGrid
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_drawGrid: function() {
var me = this;
var ctx = me.ctx;
var opts = me.options;
var gridLineOpts = opts.gridLines;
Method getNormalForm
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getNormalForm(): HTMLForm {
$fields = [];
// Allow subscribers to manipulate the list of watched pages (or use it
// to preload lots of details at once)
Method execute
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute(): void {
$params = $this->extractRequestParams();
$title = Title::newFromText( $params['title'] );
if ( !$title ) {
Method getSearchInput
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getSearchInput( string $query ): string {
$attribs = [
'placeholder' => $this->msg( 'tux-sst-search-ph' )->text(),
'class' => 'searchinputbox mw-ui-input',
'dir' => $this->getLanguage()->getDir()
Method run
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function run(): bool {
$params = $this->params;
$isRename = $params['rename'] ?? false;
$isFuzzy = $params['fuzzy'] ?? false;
$otherLangs = $params['otherLangs'] ?? [];
Method getGroupStructure
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getGroupStructure(): array {
$groups = self::getAllGroups();
// Determine the top level groups of the tree
$tree = $groups;
Method forItemInternal
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function forItemInternal(
array &$stats,
MessageGroup $group,
string $languageCode,
int $flags
Method writeReal
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function writeReal( MessageCollection $collection ): string {
// FIXME: this should be the source language
$pot = $this->read( 'en' ) ?? [];
$code = $collection->code;
$template = $this->read( $code ) ?? [];
Method listSubgroups
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function listSubgroups( string $groupId, array $subGroupIds ): string {
$id = $this->htmlIdForGroup( $groupId, 'mw-tpa-grouplist-' );
$out = Html::openElement( 'ol', [ 'id' => $id ] );
// Get the respective groups and sort them
Function showTranslation
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showTranslation( translation ) {
var $target = $( '.translations' ),
translationLang = translation.title.split( '/' ).pop();
$target.append( $( '<div>' )
Function toggleSubscription
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function toggleSubscription() {
var api = new mw.Api();
var $button = $( this );
$button.prop( 'disabled', true );
Method __construct
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct() {
parent::__construct();
$this->addDescription( 'Review and move translatable bundles including their subpages' );
$this->addArg(
Method classifyPages
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function classifyPages( array $pages ): array {
$out = [
// The ideal state for pages: marked and up to date
'active' => [],
'proposed' => [],
Function _drawTitle
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_drawTitle: function() {
var me = this;
var ctx = me.ctx;
var options = me.options;
var scaleLabel = options.scaleLabel;
Function decodeFill
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function decodeFill(el, index, count) {
var model = el._model || {};
var fill = model.fill;
var target;