From 469cc7677553e683a847f2c0da7860de03f25472 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 21 Sep 2011 16:36:43 +0000 Subject: [PATCH] Return documentation --- includes/api/ApiBase.php | 4 +++- includes/api/ApiFeedContributions.php | 2 ++ includes/api/ApiFeedWatchlist.php | 2 ++ includes/api/ApiFormatBase.php | 2 ++ includes/api/ApiQueryUserContributions.php | 2 ++ includes/api/ApiUpload.php | 2 ++ 6 files changed, 13 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index ad157238d7..614c0ccf8e 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -655,6 +655,8 @@ abstract class ApiBase { /** * @deprecated since 1.17 use MWNamespace::getValidNamespaces() + * + * @return array */ public static function getValidNamespaces() { return MWNamespace::getValidNamespaces(); @@ -1164,7 +1166,7 @@ abstract class ApiBase { 'emptynewsection' => array( 'code' => 'emptynewsection', 'info' => 'Creating empty new sections is not possible.' ), 'revwrongpage' => array( 'code' => 'revwrongpage', 'info' => "r\$1 is not a revision of ``\$2''" ), 'undo-failure' => array( 'code' => 'undofailure', 'info' => 'Undo failed due to conflicting intermediate edits' ), - + // Messages from WikiPage::doEit() 'edit-hook-aborted' => array( 'code' => 'edit-hook-aborted', 'info' => "Your edit was aborted by an ArticleSave hook" ), 'edit-gone-missing' => array( 'code' => 'edit-gone-missing', 'info' => "The page you tried to edit doesn't seem to exist anymore" ), diff --git a/includes/api/ApiFeedContributions.php b/includes/api/ApiFeedContributions.php index 1a8e7add58..66559c2367 100644 --- a/includes/api/ApiFeedContributions.php +++ b/includes/api/ApiFeedContributions.php @@ -36,6 +36,8 @@ class ApiFeedContributions extends ApiBase { /** * This module uses a custom feed wrapper printer. + * + * @return ApiFormatFeedWrapper */ public function getCustomPrinter() { return new ApiFormatFeedWrapper( $this->getMain() ); diff --git a/includes/api/ApiFeedWatchlist.php b/includes/api/ApiFeedWatchlist.php index 3d0d3d8417..44ddd10b47 100644 --- a/includes/api/ApiFeedWatchlist.php +++ b/includes/api/ApiFeedWatchlist.php @@ -44,6 +44,8 @@ class ApiFeedWatchlist extends ApiBase { /** * This module uses a custom feed wrapper printer. + * + * @return ApiFormatFeedWrapper */ public function getCustomPrinter() { return new ApiFormatFeedWrapper( $this->getMain() ); diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index 555a0faa03..036d113493 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -342,6 +342,8 @@ class ApiFormatFeedWrapper extends ApiFormatBase { /** * Optimization - no need to sanitize data that will not be needed + * + * @return bool */ public function getNeedsRawData() { return true; diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 354dc296ac..ba9786448f 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -275,6 +275,8 @@ class ApiQueryContributions extends ApiQueryBase { /** * Extract fields from the database row and append them to a result array + * + * @return array */ private function extractRowInfo( $row ) { $vals = array(); diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index 30331bc980..d69bc85a5f 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -428,6 +428,8 @@ class ApiUpload extends ApiBase { /** * Perform the actual upload. Returns a suitable result array on success; * dies on failure. + * + * @return array */ protected function performUpload() { global $wgUser; -- 2.20.1