Siebrand has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/213993

Change subject: Remove various code formatting inconsistencies
......................................................................

Remove various code formatting inconsistencies

Found by running CodeSniffer.

Change-Id: I56cd00859f19d104efc2040578ab4ac7e143e3df
---
M resources/css/ext.translate.special.pagemigration.css
M resources/js/ext.translate.editor.js
M resources/js/ext.translate.editor.shortcuts.js
M resources/js/ext.translate.special.aggregategroups.js
M tests/qunit/ext.translate.special.pagemigration.test.js
5 files changed, 4 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/93/213993/1

diff --git a/resources/css/ext.translate.special.pagemigration.css 
b/resources/css/ext.translate.special.pagemigration.css
index 514bab8..d64402e 100644
--- a/resources/css/ext.translate.special.pagemigration.css
+++ b/resources/css/ext.translate.special.pagemigration.css
@@ -62,4 +62,4 @@
        color: #C00;
        border: 1px solid #FAC5C5;
        background-color: #FAE3E3;
-}
\ No newline at end of file
+}
diff --git a/resources/js/ext.translate.editor.js 
b/resources/js/ext.translate.editor.js
index 77a2b60..83ae13b 100644
--- a/resources/js/ext.translate.editor.js
+++ b/resources/js/ext.translate.editor.js
@@ -113,7 +113,6 @@
                        this.markUnsaved( 'tux-warning' );
                },
 
-
                /**
                 * Mark the message as no longer unsaved
                 */
diff --git a/resources/js/ext.translate.editor.shortcuts.js 
b/resources/js/ext.translate.editor.shortcuts.js
index e68b6e3..4f980bd 100644
--- a/resources/js/ext.translate.editor.shortcuts.js
+++ b/resources/js/ext.translate.editor.shortcuts.js
@@ -18,7 +18,7 @@
 
                        maxLeft = editorOffset.left;
                        if ( !rtl ) {
-                                maxLeft += this.$editor.outerWidth();
+                               maxLeft += this.$editor.outerWidth();
                        }
 
                        this.hideShortcuts();
diff --git a/resources/js/ext.translate.special.aggregategroups.js 
b/resources/js/ext.translate.special.aggregategroups.js
index 11cd05a..0fab949 100644
--- a/resources/js/ext.translate.special.aggregategroups.js
+++ b/resources/js/ext.translate.special.aggregategroups.js
@@ -148,7 +148,7 @@
        $( document ).ready( function () {
                var excludeFunction, autocompleteFunction,
                        api = new mw.Api(),
-                       exclude = [], resp, groups=[],
+                       exclude = [], resp, groups = [],
                        $input = $( '.tp-group-input' );
 
                excludeFunction = function( event ) {
@@ -295,7 +295,6 @@
 
                                $div.data( 'groupid', aggregateGroupId );
                                $div.data( 'id', aggregateGroupId );
-
 
                                $groupSelector = $( '<input>' ).attr( {
                                        'type': 'text'  ,
diff --git a/tests/qunit/ext.translate.special.pagemigration.test.js 
b/tests/qunit/ext.translate.special.pagemigration.test.js
index 4eb5fed..71afaff 100644
--- a/tests/qunit/ext.translate.special.pagemigration.test.js
+++ b/tests/qunit/ext.translate.special.pagemigration.test.js
@@ -98,5 +98,4 @@
                translationUnits2 = mw.translate.alignHeaders( sourceUnits, 
translationUnits2 );
                assert.deepEqual( translationUnits2, result2, 'h2 headers 
aligned with merging' );
        } );
-
-}( jQuery, mediaWiki ) );
\ No newline at end of file
+}( jQuery, mediaWiki ) );

-- 
To view, visit https://gerrit.wikimedia.org/r/213993
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I56cd00859f19d104efc2040578ab4ac7e143e3df
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Siebrand <siebr...@kitano.nl>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to