diff options
author | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2014-03-12 12:50:43 +0100 |
---|---|---|
committer | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2014-03-12 12:50:43 +0100 |
commit | b6adafc146006e8ad5cc06418f1c8f64f8535316 (patch) | |
tree | ea677585c17feba4163e4446901d12e69523da4f /includes/ChangesFeed.php | |
parent | fc20c30d20902aef1ce26e1660ca782ab51d05b7 (diff) | |
download | mediawikicore-b6adafc146006e8ad5cc06418f1c8f64f8535316.tar.gz mediawikicore-b6adafc146006e8ad5cc06418f1c8f64f8535316.zip |
Fix CodeSniffer errors and warnings
For the files touched in I06ee0f01d8 as logged at
https://integration.wikimedia.org/ci/job/mediawiki-core-phpcs-strict-HEAD/7798/console
Change-Id: I811884f7a5ada4d0551552d0a2c2775d6b17b59f
Diffstat (limited to 'includes/ChangesFeed.php')
-rw-r--r-- | includes/ChangesFeed.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/includes/ChangesFeed.php b/includes/ChangesFeed.php index cf05782bd895..a5e53648002c 100644 --- a/includes/ChangesFeed.php +++ b/includes/ChangesFeed.php @@ -67,10 +67,12 @@ class ChangesFeed { /** * Generates feed's content * - * @param $feed ChannelFeed subclass object (generally the one returned by getFeedObject()) - * @param $rows ResultWrapper object with rows in recentchanges table - * @param $lastmod Integer: timestamp of the last item in the recentchanges table (only used for the cache key) - * @param $opts FormOptions as in SpecialRecentChanges::getDefaultOptions() + * @param ChannelFeed $feed ChannelFeed subclass object (generally the one returned + * by getFeedObject()) + * @param ResultWrapper $rows ResultWrapper object with rows in recentchanges table + * @param int $lastmod Timestamp of the last item in the recentchanges table (only + * used for the cache key) + * @param FormOptions $opts As in SpecialRecentChanges::getDefaultOptions() * @return null|bool True or null */ public function execute( $feed, $rows, $lastmod, $opts ) { @@ -201,7 +203,10 @@ class ChangesFeed { foreach ( $sorted as $obj ) { $title = Title::makeTitle( $obj->rc_namespace, $obj->rc_title ); - $talkpage = MWNamespace::canTalk( $obj->rc_namespace ) ? $title->getTalkPage()->getFullURL() : ''; + $talkpage = MWNamespace::canTalk( $obj->rc_namespace ) + ? $title->getTalkPage()->getFullURL() + : ''; + // Skip items with deleted content (avoids partially complete/inconsistent output) if ( $obj->rc_deleted ) { continue; @@ -231,5 +236,4 @@ class ChangesFeed { wfProfileOut( __METHOD__ ); return $items; } - } |