r66146 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66145‎ | r66146 | r66147 >
Date:17:12, 10 May 2010
Author:reedy
Status:ok
Tags:
Comment:
Move some braces to match coding styles
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryRevisions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryRevisions.php
@@ -209,8 +209,7 @@
210210
211211 if ( $enumRevMode ) {
212212 // This is mostly to prevent parameter errors (and optimize SQL?)
213 - if ( !is_null( $params['startid'] ) && !is_null( $params['start'] ) )
214 - {
 213+ if ( !is_null( $params['startid'] ) && !is_null( $params['start'] ) ) {
215214 $this->dieUsage( 'start and startid cannot be used together', 'badparams' );
216215 }
217216
@@ -218,8 +217,7 @@
219218 $this->dieUsage( 'end and endid cannot be used together', 'badparams' );
220219 }
221220
222 - if ( !is_null( $params['user'] ) && !is_null( $params['excludeuser'] ) )
223 - {
 221+ if ( !is_null( $params['user'] ) && !is_null( $params['excludeuser'] ) ) {
224222 $this->dieUsage( 'user and excludeuser cannot be used together', 'badparams' );
225223 }
226224

Status & tagging log