Pass phpcs-strict on resources/
authorSiebrand Mazeland <siebrand@kitano.nl>
Wed, 23 Apr 2014 12:26:14 +0000 (14:26 +0200)
committerSiebrand Mazeland <siebrand@kitano.nl>
Wed, 23 Apr 2014 12:26:14 +0000 (14:26 +0200)
Change-Id: I5fdd0cfebc1b840e2f6731262f0806c60971df61

resources/src/jquery/jquery.arrowSteps.js
resources/src/jquery/jquery.badge.css
resources/src/jquery/jquery.textSelection.js
resources/src/mediawiki.language/languages/he.js
resources/src/mediawiki.special/mediawiki.special.css
resources/src/mediawiki.special/mediawiki.special.version.css
resources/src/mediawiki/mediawiki.debug.profile.css
resources/src/mediawiki/mediawiki.jqueryMsg.js
resources/src/mediawiki/mediawiki.log.js

index c44e7c5..66a3c56 100644 (file)
@@ -49,7 +49,7 @@
                // Also add in the padding for the calculated arrow width.
                arrowWidth = parseInt( this.outerHeight(), 10 );
                $steps.filter( ':not(:last-child)' ).addClass( 'arrow' )
-                     .find( 'div' ).css( paddingSide, arrowWidth.toString() + 'px' );
+                       .find( 'div' ).css( paddingSide, arrowWidth.toString() + 'px' );
 
                this.data( 'arrowSteps', $steps );
                return this;
index f313663..fa7ea70 100644 (file)
@@ -34,4 +34,3 @@
 .mw-badge-important {
        background-color: #cc0000;
 }
-
index 156b314..49518fa 100644 (file)
                         *
                         * @fixme document the options parameters
                         */
-                        getCaretPosition: function ( options ) {
+                       getCaretPosition: function ( options ) {
                                function getCaret( e ) {
                                        var caretPos = 0,
                                                endPos = 0,
index 486e993..48351bc 100644 (file)
@@ -21,7 +21,7 @@ mediaWiki.language.convertGrammar = function ( word, form ) {
                        }
 
                        // Add a hyphen (maqaf) before numbers and non-Hebrew letters
-                       if (  word.substr( 0, 1 ) < 'א' ||  word.substr( 0, 1 ) > 'ת' ) {
+                       if ( word.substr( 0, 1 ) < 'א' ||  word.substr( 0, 1 ) > 'ת' ) {
                                word = '־' + word;
                        }
        }
index 50349c3..ea00960 100644 (file)
@@ -1,4 +1,3 @@
-
 /**** Special:AllMessages ****/
 #mw-allmessagestable .allmessages-customised td.am_default {
        background-color: #fcffc4;
index bf49d1a..ab27da9 100644 (file)
@@ -1,4 +1,3 @@
-
 .mw-debug-profile-tipsy .tipsy-inner {
        /* undo max-width from vector on .tipsy-inner */
        max-width: none;
index 32a9927..3731771 100644 (file)
                                        for ( i = 0; i < ps.length; i++ ) {
                                                result = ps[i]();
                                                if ( result !== null ) {
-                                                        return result;
+                                                       return result;
                                                }
                                        }
                                        return null;
                                return function () {
                                        var result = null;
                                        if ( input.substr( pos, len ) === s ) {
-                                                result = s;
-                                                pos += len;
+                                               result = s;
+                                               pos += len;
                                        }
                                        return result;
                                };
                                for ( i = 0, len = attributes.length; i < len; i += 2 ) {
                                        attributeName = attributes[i];
                                        if ( $.inArray( attributeName, settings.allowedHtmlCommonAttributes ) === -1 &&
-                                            $.inArray( attributeName, settings.allowedHtmlAttributesByElement[startTagName] || [] ) === -1 ) {
+                                               $.inArray( attributeName, settings.allowedHtmlAttributesByElement[startTagName] || [] ) === -1 ) {
                                                return false;
                                        }
                                }
index 2ca0bbd..ad68967 100644 (file)
                                d = new Date(),
                                // Create HH:MM:SS.MIL timestamp
                                time = ( d.getHours() < 10 ? '0' + d.getHours() : d.getHours() ) +
-                                ':' + ( d.getMinutes() < 10 ? '0' + d.getMinutes() : d.getMinutes() ) +
-                                ':' + ( d.getSeconds() < 10 ? '0' + d.getSeconds() : d.getSeconds() ) +
-                                '.' + ( d.getMilliseconds() < 10 ? '00' + d.getMilliseconds() : ( d.getMilliseconds() < 100 ? '0' + d.getMilliseconds() : d.getMilliseconds() ) ),
-                                $log = $( '#mw-log-console' );
+                                       ':' + ( d.getMinutes() < 10 ? '0' + d.getMinutes() : d.getMinutes() ) +
+                                       ':' + ( d.getSeconds() < 10 ? '0' + d.getSeconds() : d.getSeconds() ) +
+                                       '.' + ( d.getMilliseconds() < 10 ? '00' + d.getMilliseconds() : ( d.getMilliseconds() < 100 ? '0' + d.getMilliseconds() : d.getMilliseconds() ) ),
+                               $log = $( '#mw-log-console' );
 
                        if ( !$log.length ) {
                                $log = $( '<div id="mw-log-console"></div>' ).css( {