From 4f17f49b78a600d5794be7217509bc9fbc3b227f Mon Sep 17 00:00:00 2001 From: Petr Onderka Date: Wed, 2 May 2012 15:48:02 +0200 Subject: [PATCH] Fixed whitespace in API classes Change-Id: Ia06de4822e32612c4f668e14643236322837a3e1 --- includes/api/ApiQueryFilearchive.php | 2 +- includes/api/ApiQueryLangLinks.php | 4 ++-- includes/api/ApiQueryUserContributions.php | 2 +- includes/api/ApiQueryUsers.php | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index 7bf97d3ec0..268b1e4611 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -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', - ), + ), ); } diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index d505d726f1..21cc925900 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -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'] ); diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 8e2f20db28..16543820b3 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -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' ); } diff --git a/includes/api/ApiQueryUsers.php b/includes/api/ApiQueryUsers.php index 31624bdf04..38244fff6a 100644 --- a/includes/api/ApiQueryUsers.php +++ b/includes/api/ApiQueryUsers.php @@ -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, -- 2.20.1