From c7e2c7083735062293763ff188ea0872a832cee9 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 1 Feb 2010 15:36:14 +0000 Subject: [PATCH] Whitespace fixes for r61761, r61779 --- includes/api/ApiQueryDeletedrevs.php | 2 +- includes/api/ApiQueryLogEvents.php | 6 +++--- includes/api/ApiQueryUserContributions.php | 6 +++--- includes/api/ApiQueryWatchlist.php | 4 ++-- includes/upload/UploadFromChunks.php | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index 308c0c1fc2..caa4f3aa83 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -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 ); } diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index e4ff8c88dd..57bec76f43 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -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 { diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 3e96907f75..ad735189b7 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -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 { diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index 0b780c64da..8a0e8fb1a3 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -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; diff --git a/includes/upload/UploadFromChunks.php b/includes/upload/UploadFromChunks.php index 22926ef786..2ecb559f26 100644 --- a/includes/upload/UploadFromChunks.php +++ b/includes/upload/UploadFromChunks.php @@ -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; -- 2.20.1