From 934ff3f2ed2f8409a812dc28e53047e8a48fb1b4 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 2 Jan 2011 04:37:06 +0000 Subject: [PATCH] Method documentation Change variable assignment --- includes/api/ApiQueryAllimages.php | 1 + includes/api/ApiRollback.php | 2 +- includes/installer/DatabaseUpdater.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryAllimages.php b/includes/api/ApiQueryAllimages.php index c7b6b2d521..94e221b7cc 100644 --- a/includes/api/ApiQueryAllimages.php +++ b/includes/api/ApiQueryAllimages.php @@ -48,6 +48,7 @@ class ApiQueryAllimages extends ApiQueryGeneratorBase { * which may not necesarilly be the same as the local DB. * * TODO: allow querying non-local repos. + * @return DatabaseBase */ protected function getDB() { return $this->mRepo->getSlaveDB(); diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index cf4e97e03e..7e6d32f66f 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -47,7 +47,7 @@ class ApiRollback extends ApiBase { $titleObj = $this->getTitle(); $articleObj = new Article( $titleObj ); $summary = ( isset( $params['summary'] ) ? $params['summary'] : '' ); - $details = null; + $details = array(); $retval = $articleObj->doRollback( $this->getUser(), $summary, $params['token'], $params['markbot'], $details ); if ( $retval ) { diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index c0c3d47292..acb5c27eeb 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -89,7 +89,7 @@ abstract class DatabaseUpdater { /** * Get a database connection to run updates * - * @return DatabasBase object + * @return DatabaseBase object */ public function getDB() { return $this->db; -- 2.20.1