diff --git a/client/WikibaseClient.hooks.php b/client/WikibaseClient.hooks.php index 2705020160..bd2faa2263 100644 --- a/client/WikibaseClient.hooks.php +++ b/client/WikibaseClient.hooks.php @@ -347,7 +347,7 @@ public static function onGetPreferences( User $user, array &$prefs ) { /** * Register the parser functions. * - * @param $parser Parser + * @param Parser $parser * * @return bool */ diff --git a/lib/includes/LanguageWithConversion.php b/lib/includes/LanguageWithConversion.php index 6f66ed4b05..1c59a4f1bb 100644 --- a/lib/includes/LanguageWithConversion.php +++ b/lib/includes/LanguageWithConversion.php @@ -240,7 +240,7 @@ public function translate( $text ) { * * Does nothing if this is not a converted language. * - * @param $text String + * @param string $text */ private function prepareForTranslate( $text ) { if ( $this->parentLanguage ) { diff --git a/repo/Wikibase.hooks.php b/repo/Wikibase.hooks.php index 25ade02d20..07881822d1 100644 --- a/repo/Wikibase.hooks.php +++ b/repo/Wikibase.hooks.php @@ -303,7 +303,7 @@ public static function onArticleUndelete( Title $title, $created, $comment ) { * * @todo: find a better way to do this! * - * @param $recentChange RecentChange + * @param RecentChange $recentChange * @return bool */ public static function onRecentChangeSave( RecentChange $recentChange ) { diff --git a/repo/includes/Actions/EditEntityAction.php b/repo/includes/Actions/EditEntityAction.php index 75a3b8cfdf..ddf01dab78 100644 --- a/repo/includes/Actions/EditEntityAction.php +++ b/repo/includes/Actions/EditEntityAction.php @@ -434,8 +434,8 @@ private function showDiffStyle() { /** * Generate standard summary input and label (wgSummary), compatible to EditPage. * - * @param $summary string The value of the summary input - * @param $labelText string The html to place inside the label + * @param string $summary The value of the summary input + * @param string $labelText The html to place inside the label * * @return array An array in the format array( $label, $input ) */ diff --git a/repo/includes/Api/ApiErrorReporter.php b/repo/includes/Api/ApiErrorReporter.php index 11f4ce3a1c..8db020d530 100644 --- a/repo/includes/Api/ApiErrorReporter.php +++ b/repo/includes/Api/ApiErrorReporter.php @@ -340,7 +340,7 @@ public function addStatusToResult( Status $status, &$data ) { * This provides support for message lists coming from Status::getErrorsByType() as well as * Title::getUserPermissionsErrors() etc. * - * @param $messageSpecs array a list of errors, as returned by Status::getErrorsByType() + * @param array $messageSpecs a list of errors, as returned by Status::getErrorsByType() * or Title::getUserPermissionsErrors() * * @return array a result structure containing the messages from $errors as well as what @@ -383,7 +383,7 @@ private function convertMessagesToResult( array $messageSpecs ) { * * @see convertToMessage() * - * @param $messageSpecs array a list of errors, as returned by Status::getErrorsByType() + * @param array $messageSpecs a list of errors, as returned by Status::getErrorsByType() * or Title::getUserPermissionsErrors(). * * @return array a result structure containing the messages from $errors as well as what diff --git a/repo/includes/Api/ModifyEntity.php b/repo/includes/Api/ModifyEntity.php index 376fd40395..f93d709c96 100644 --- a/repo/includes/Api/ModifyEntity.php +++ b/repo/includes/Api/ModifyEntity.php @@ -464,8 +464,8 @@ public function execute() { /** * Check the rights for the user accessing the module. * - * @param $entity EntityDocument the entity to check - * @param $user User doing the action + * @param EntityDocument $entity the entity to check + * @param User $user User doing the action * * @return Status the check's result */ diff --git a/repo/includes/Api/ResultBuilder.php b/repo/includes/Api/ResultBuilder.php index 8db5cfe53c..f25712b9cf 100644 --- a/repo/includes/Api/ResultBuilder.php +++ b/repo/includes/Api/ResultBuilder.php @@ -118,7 +118,7 @@ public function __construct( /** * @since 0.5 * - * @param $success bool|int|null + * @param bool|int|null $success */ public function markSuccess( $success = true ) { $value = (int)$success; @@ -145,9 +145,9 @@ public function markSuccess( $success = true ) { * * @since 0.5 * - * @param $path array|string|null - * @param $name string - * @param $values array + * @param array|string|null $path + * @param string $name + * @param array $values * @param string $tag tag name to use for elements of $values if not already present */ public function setList( $path, $name, array $values, $tag ) { @@ -178,9 +178,9 @@ public function setList( $path, $name, array $values, $tag ) { * * @since 0.5 * - * @param $path array|string|null - * @param $name string - * @param $value mixed + * @param array|string|null $path + * @param string $name + * @param mixed $value */ public function setValue( $path, $name, $value ) { $this->checkPathType( $path ); @@ -204,10 +204,10 @@ public function setValue( $path, $name, $value ) { * * @since 0.5 * - * @param $path array|string|null - * @param $key int|string|null the key to use when appending, or null for automatic. + * @param array|string|null $path + * @param int|string|null $key the key to use when appending, or null for automatic. * May be ignored even if given, based on $this->addMetaData. - * @param $value mixed + * @param mixed $value * @param string $tag tag name to use for $value in indexed mode */ public function appendValue( $path, $key, $value, $tag ) { @@ -234,7 +234,7 @@ private function checkPathType( $path ) { } /** - * @param $key int|string|null the key to use when appending, or null for automatic. + * @param int|string|null $key the key to use when appending, or null for automatic. */ private function checkKeyType( $key ) { Assert::parameter( diff --git a/repo/includes/Content/EntityHandler.php b/repo/includes/Content/EntityHandler.php index 024fdf921b..bc37db8360 100644 --- a/repo/includes/Content/EntityHandler.php +++ b/repo/includes/Content/EntityHandler.php @@ -556,9 +556,9 @@ public function getSpecialPageForCreation() { * * @since 0.4 * - * @param $latestRevision Revision The current text - * @param $newerRevision Revision The revision to undo - * @param $olderRevision Revision Must be an earlier revision than $undo + * @param Revision $latestRevision The current text + * @param Revision $newerRevision The revision to undo + * @param Revision $olderRevision Must be an earlier revision than $undo * * @return Content|bool Content on success, false on failure */ diff --git a/repo/includes/Diff/EntityContentDiffView.php b/repo/includes/Diff/EntityContentDiffView.php index a6a56eb5f3..e6e742031c 100644 --- a/repo/includes/Diff/EntityContentDiffView.php +++ b/repo/includes/Diff/EntityContentDiffView.php @@ -127,7 +127,7 @@ public function getDiffLang() { /** * Get a header for a specified revision. * - * @param $rev Revision + * @param Revision $rev * @param string $complete 'complete' to get the header wrapped depending * the visibility of the revision and a link to edit the page. * diff --git a/repo/includes/Specials/SpecialSetSiteLink.php b/repo/includes/Specials/SpecialSetSiteLink.php index cd1f02cd04..82df22dc0e 100644 --- a/repo/includes/Specials/SpecialSetSiteLink.php +++ b/repo/includes/Specials/SpecialSetSiteLink.php @@ -194,7 +194,7 @@ protected function modifyEntity( EntityDocument $entity ) { /** * Checks if the site id is valid. * - * @param $siteId string the site id + * @param string $siteId the site id * * @return bool */ diff --git a/repo/tests/phpunit/includes/Api/EntityTestHelper.php b/repo/tests/phpunit/includes/Api/EntityTestHelper.php index 2b01d80be5..0e0242b54e 100644 --- a/repo/tests/phpunit/includes/Api/EntityTestHelper.php +++ b/repo/tests/phpunit/includes/Api/EntityTestHelper.php @@ -392,7 +392,7 @@ public static function getId( $handle ) { } /** - * @param $id string of entityid + * @param string $id string of entityid * @return null|string id of current handle (if active) */ public static function getHandle( $id ) { diff --git a/repo/tests/phpunit/includes/Api/IndependentWikibaseApiTestCase.php b/repo/tests/phpunit/includes/Api/IndependentWikibaseApiTestCase.php index 964dea5e61..6bd5df88dc 100644 --- a/repo/tests/phpunit/includes/Api/IndependentWikibaseApiTestCase.php +++ b/repo/tests/phpunit/includes/Api/IndependentWikibaseApiTestCase.php @@ -66,8 +66,8 @@ public function doApiRequest( array $params ) { * @since 0.5 * * Do the test for exceptions from Api queries. - * @param $params array of params for the api query - * @param $exception array details of the exception to expect (type,code,message) + * @param array $params array of params for the api query + * @param array $exception details of the exception to expect (type,code,message) */ public function doTestQueryExceptions( $params, $exception ) { try { diff --git a/view/src/EntityTermsView.php b/view/src/EntityTermsView.php index 372a3e4187..2fd21f6733 100644 --- a/view/src/EntityTermsView.php +++ b/view/src/EntityTermsView.php @@ -163,7 +163,7 @@ private function getHtmlForAliases( $languageCode, AliasGroupList $aliasGroups ) } /** - * @param $languageCode The language for which terms should be edited + * @param string $languageCode The language for which terms should be edited * @param EntityId|null $entityId * * @return string HTML diff --git a/view/src/Template/TemplateFactory.php b/view/src/Template/TemplateFactory.php index c9c0bb1e58..389fd442a6 100644 --- a/view/src/Template/TemplateFactory.php +++ b/view/src/Template/TemplateFactory.php @@ -63,7 +63,7 @@ public function get( $key, array $params ) { * * @since 0.2 * - * @param $key string template key + * @param string $key template key * Varargs: normal template parameters * * @return string