From: Sam Reed Date: Wed, 12 Jan 2011 00:29:17 +0000 (+0000) Subject: Document return type. X-Git-Tag: 1.31.0-rc.0~32608 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=f3caa365e263a33a81e49f07f8a79de945cb20e6;p=lhc%2Fweb%2Fwiklou.git Document return type. Explicit class member variable definition --- diff --git a/includes/api/ApiQueryAllimages.php b/includes/api/ApiQueryAllimages.php index 94e221b7cc..8fa733c698 100644 --- a/includes/api/ApiQueryAllimages.php +++ b/includes/api/ApiQueryAllimages.php @@ -38,6 +38,8 @@ if ( !defined( 'MEDIAWIKI' ) ) { */ class ApiQueryAllimages extends ApiQueryGeneratorBase { + private $mRepo; + public function __construct( $query, $moduleName ) { parent::__construct( $query, $moduleName, 'ai' ); $this->mRepo = RepoGroup::singleton()->getLocalRepo(); diff --git a/includes/filerepo/RepoGroup.php b/includes/filerepo/RepoGroup.php index 4873547465..65de63bd9f 100644 --- a/includes/filerepo/RepoGroup.php +++ b/includes/filerepo/RepoGroup.php @@ -26,6 +26,7 @@ class RepoGroup { /** * Get a RepoGroup instance. At present only one instance of RepoGroup is * needed in a MediaWiki invocation, this may change in the future. + * @return RepoGroup */ static function singleton() { if ( self::$instance ) {