From: Reedy Date: Sun, 9 Dec 2012 03:16:14 +0000 (+0000) Subject: Fixup a couple of uses of return values of functions that return void X-Git-Tag: 1.31.0-rc.0~21372^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=dd16606d7af243106f0877b6ef814defda2be500;p=lhc%2Fweb%2Fwiklou.git Fixup a couple of uses of return values of functions that return void Change-Id: I7c8f08c5b436cb3209fd98b9479a50abe223cccc --- diff --git a/includes/api/ApiQueryUsers.php b/includes/api/ApiQueryUsers.php index 591ace93e1..edcbc1a439 100644 --- a/includes/api/ApiQueryUsers.php +++ b/includes/api/ApiQueryUsers.php @@ -250,7 +250,7 @@ class ApiQueryUsers extends ApiQueryBase { } $done[] = $u; } - return $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'user' ); + $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'user' ); } /** diff --git a/includes/parser/LinkHolderArray.php b/includes/parser/LinkHolderArray.php index 9f1fff22de..e1fdbc342d 100644 --- a/includes/parser/LinkHolderArray.php +++ b/includes/parser/LinkHolderArray.php @@ -254,12 +254,12 @@ class LinkHolderArray { * @todo FIXME: Update documentation. makeLinkObj() is deprecated. * Replace link placeholders with actual links, in the buffer * Placeholders created in Skin::makeLinkObj() - * Returns an array of link CSS classes, indexed by PDBK. + * @return array of link CSS classes, indexed by PDBK. */ function replace( &$text ) { wfProfileIn( __METHOD__ ); - $colours = $this->replaceInternal( $text ); + $colours = $this->replaceInternal( $text ); // FIXME: replaceInternal doesn't return a value $this->replaceInterwiki( $text ); wfProfileOut( __METHOD__ ); diff --git a/includes/specials/SpecialNewpages.php b/includes/specials/SpecialNewpages.php index 08d1517f8f..85b9cf8c0c 100644 --- a/includes/specials/SpecialNewpages.php +++ b/includes/specials/SpecialNewpages.php @@ -140,7 +140,8 @@ class SpecialNewpages extends IncludableSpecialPage { $feedType = $this->opts->getValue( 'feed' ); if( $feedType ) { - return $this->feed( $feedType ); + $this->feed( $feedType ); + return; } $allValues = $this->opts->getAllValues();