From 6d3bbbbdd9a306f1a3878be33917e969f9014a73 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Mon, 1 Apr 2013 19:16:34 +0200 Subject: [PATCH] Update PHPDoc comments Change-Id: Id20f632762d705ba5e5eb18088f6e9e551b3f42b --- includes/api/ApiImageRotate.php | 4 ++-- includes/api/ApiPageSet.php | 3 +++ includes/api/ApiQueryCategories.php | 1 - includes/api/ApiQueryDuplicateFiles.php | 3 +-- includes/api/ApiQueryImageInfo.php | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/includes/api/ApiImageRotate.php b/includes/api/ApiImageRotate.php index 5aa41eaed3..db82805d50 100644 --- a/includes/api/ApiImageRotate.php +++ b/includes/api/ApiImageRotate.php @@ -22,7 +22,6 @@ */ class ApiImageRotate extends ApiBase { - private $mPageSet = null; public function __construct( $main, $action ) { @@ -151,7 +150,8 @@ class ApiImageRotate extends ApiBase { /** * Checks that the user has permissions to perform rotations. - * @param $user User The user to check. + * @param User $user The user to check + * @param Title $title * @return string|null Permission error message, or null if there is no error */ protected function checkPermissions( $user, $title ) { diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index c76e22b935..0645edbed8 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -69,6 +69,9 @@ class ApiPageSet extends ApiBase { private $mFakePageId = -1; private $mCacheMode = 'public'; private $mRequestedPageFields = array(); + /** + * @var int + */ private $mDefaultNamespace = NS_MAIN; /** diff --git a/includes/api/ApiQueryCategories.php b/includes/api/ApiQueryCategories.php index 69a6441567..93ae61a6a3 100644 --- a/includes/api/ApiQueryCategories.php +++ b/includes/api/ApiQueryCategories.php @@ -49,7 +49,6 @@ class ApiQueryCategories extends ApiQueryGeneratorBase { /** * @param $resultPageSet ApiPageSet - * @return */ private function run( $resultPageSet = null ) { if ( $this->getPageSet()->getGoodTitleCount() == 0 ) { diff --git a/includes/api/ApiQueryDuplicateFiles.php b/includes/api/ApiQueryDuplicateFiles.php index 18dcba85ac..7f73631ab6 100644 --- a/includes/api/ApiQueryDuplicateFiles.php +++ b/includes/api/ApiQueryDuplicateFiles.php @@ -48,8 +48,7 @@ class ApiQueryDuplicateFiles extends ApiQueryGeneratorBase { } /** - * @param $resultPageSet ApiPageSet - * @return + * @param ApiPageSet $resultPageSet */ private function run( $resultPageSet = null ) { $params = $this->extractRequestParams(); diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index 556f1479e9..b2ef048ec7 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -547,7 +547,7 @@ class ApiQueryImageInfo extends ApiQueryBase { * Returns the descriptions for the properties provided by getPropertyNames() * * @param array $filter List of properties to filter out - * + * @param string $modulePrefix * @return array */ public static function getPropertyDescriptions( $filter = array(), $modulePrefix = '' ) { -- 2.20.1