Whitespace fixes for r61761, r61779
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 1 Feb 2010 15:36:14 +0000 (15:36 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 1 Feb 2010 15:36:14 +0000 (15:36 +0000)
includes/api/ApiQueryDeletedrevs.php
includes/api/ApiQueryLogEvents.php
includes/api/ApiQueryUserContributions.php
includes/api/ApiQueryWatchlist.php
includes/upload/UploadFromChunks.php

index 308c0c1..caa4f3a 100644 (file)
@@ -197,7 +197,7 @@ class ApiQueryDeletedrevs extends ApiQueryBase {
 
                        $title = Title::makeTitle( $row->ar_namespace, $row->ar_title );
 
-                       if ( $fld_parsedcomment) {
+                       if ( $fld_parsedcomment ) {
                                global $wgUser;
                                $rev['parsedcomment'] = $wgUser->getSkin()->formatComment( $row->ar_comment, $title );
                        }
index e4ff8c8..57bec76 100644 (file)
@@ -217,13 +217,13 @@ class ApiQueryLogEvents extends ApiQueryBase {
                        $vals['pageid'] = intval( $row->page_id );
                }
 
-               $title = Title :: makeTitle( $row->log_namespace, $row->log_title );
+               $title = Title::makeTitle( $row->log_namespace, $row->log_title );
 
                if ( $this->fld_title ) {
                        if ( LogEventsList::isDeleted( $row, LogPage::DELETED_ACTION ) ) {
                                $vals['actionhidden'] = '';
                        } else {
-                               ApiQueryBase :: addTitleInfo( $vals, $title );
+                               ApiQueryBase::addTitleInfo( $vals, $title );
                        }
                }
 
@@ -255,7 +255,7 @@ class ApiQueryLogEvents extends ApiQueryBase {
                        $vals['timestamp'] = wfTimestamp( TS_ISO_8601, $row->log_timestamp );
                }
                
-               if ( ($this->fld_comment || $this->fld_parsedcomment) && isset( $row->log_comment ) ) {
+               if ( ( $this->fld_comment || $this->fld_parsedcomment ) && isset( $row->log_comment ) ) {
                        if ( LogEventsList::isDeleted( $row, LogPage::DELETED_COMMENT ) ) {
                                $vals['commenthidden'] = '';
                        } else {
index 3e96907..ad73518 100644 (file)
@@ -279,10 +279,10 @@ class ApiQueryContributions extends ApiQueryBase {
                        // $vals['textid'] = intval($row->rev_text_id); // todo: Should this field be exposed?
                }
 
-               $title = Title :: makeTitle( $row->page_namespace, $row->page_title );
+               $title = Title::makeTitle( $row->page_namespace, $row->page_title );
 
                if ( $this->fld_title )
-                       ApiQueryBase :: addTitleInfo( $vals, $title );
+                       ApiQueryBase::addTitleInfo( $vals, $title );
 
                if ( $this->fld_timestamp )
                        $vals['timestamp'] = wfTimestamp( TS_ISO_8601, $row->rev_timestamp );
@@ -296,7 +296,7 @@ class ApiQueryContributions extends ApiQueryBase {
                                $vals['top'] = '';
                }
 
-               if ( ($this->fld_comment || $this->fld_parsedcomment) && isset( $row->rev_comment ) ) {
+               if ( ( $this->fld_comment || $this->fld_parsedcomment ) && isset( $row->rev_comment ) ) {
                        if ( $row->rev_deleted & Revision::DELETED_COMMENT )
                                $vals['commenthidden'] = '';
                        else {
index 0b780c6..8a0e8fb 100644 (file)
@@ -233,10 +233,10 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase {
                        $vals['revid'] = intval( $row->rc_this_oldid );
                }
 
-               $title = Title :: makeTitle( $row->rc_namespace, $row->rc_title );
+               $title = Title::makeTitle( $row->rc_namespace, $row->rc_title );
 
                if ( $this->fld_title )
-                       ApiQueryBase :: addTitleInfo( $vals, $title );
+                       ApiQueryBase::addTitleInfo( $vals, $title );
 
                if ( $this->fld_user ) {
                        $vals['user'] = $row->rc_user_text;
index 22926ef..2ecb559 100644 (file)
@@ -89,7 +89,7 @@ class UploadFromChunks extends UploadBase {
         */
        protected function initFromSessionKey( $sessionKey, $sessionData ) {
                // testing against null because we don't want to cause obscure
-        // bugs when $sessionKey is full of "0"
+               // bugs when $sessionKey is full of "0"
                if ( !$sessionKey === null ) {
                        $this->status = Status::newFromFatal( 'import-token-mismatch' );
                        return;