Fixed whitespace in API classes
authorPetr Onderka <gsvick@gmail.com>
Wed, 2 May 2012 13:48:02 +0000 (15:48 +0200)
committerPetr Onderka <gsvick@gmail.com>
Wed, 2 May 2012 13:48:02 +0000 (15:48 +0200)
Change-Id: Ia06de4822e32612c4f668e14643236322837a3e1

includes/api/ApiQueryFilearchive.php
includes/api/ApiQueryLangLinks.php
includes/api/ApiQueryUserContributions.php
includes/api/ApiQueryUsers.php

index 7bf97d3..268b1e4 100644 (file)
@@ -263,7 +263,7 @@ class ApiQueryFilearchive extends ApiQueryBase {
                                ' mime              - Adds MIME of the image',
                                ' metadata          - Lists EXIF metadata for the version of the image',
                                ' bitdepth          - Adds the bit depth of the version',
-            ),
+                       ),
                );
        }
 
index d505d72..21cc925 100644 (file)
@@ -70,8 +70,8 @@ class ApiQueryLangLinks extends ApiQueryBase {
                        );
                }
 
-           $dir = ( $params['dir'] == 'descending' ? ' DESC' : '' );
-           if ( isset( $params['lang'] ) ) {
+                       $dir = ( $params['dir'] == 'descending' ? ' DESC' : '' );
+                       if ( isset( $params['lang'] ) ) {
                        $this->addWhereFld( 'll_lang', $params['lang'] );
                        if ( isset( $params['title'] ) ) {
                                $this->addWhereFld( 'll_title', $params['title'] );
index 8e2f20d..1654382 100644 (file)
@@ -185,7 +185,7 @@ class ApiQueryContributions extends ApiQueryBase {
                if ( !is_null( $show ) ) {
                        $show = array_flip( $show );
                        if ( ( isset( $show['minor'] ) && isset( $show['!minor'] ) )
-                                       || ( isset( $show['patrolled'] ) && isset( $show['!patrolled'] ) ) ) {
+                                       || ( isset( $show['patrolled'] ) && isset( $show['!patrolled'] ) ) ) {
                                $this->dieUsageMsg( 'show' );
                        }
 
index 31624bd..38244ff 100644 (file)
@@ -61,10 +61,10 @@ class ApiQueryUsers extends ApiQueryBase {
                return $this->tokenFunctions;
        }
 
-        /**
-         * @param $user User
-         * @return String
-         */
+       /**
+        * @param $user User
+        * @return String
+        */
        public static function getUserrightsToken( $user ) {
                global $wgUser;
                // Since the permissions check for userrights is non-trivial,