From f3caa365e263a33a81e49f07f8a79de945cb20e6 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 12 Jan 2011 00:29:17 +0000 Subject: [PATCH] Document return type. Explicit class member variable definition --- includes/api/ApiQueryAllimages.php | 2 ++ includes/filerepo/RepoGroup.php | 1 + 2 files changed, 3 insertions(+) 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 ) { -- 2.20.1