From 73247df2049d72da4e4460c14c0000eea3c8c0c6 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 13 Feb 2012 16:35:59 +0000 Subject: [PATCH] Remove backslash from @return types Ping r111103 --- includes/ConfEditor.php | 4 ++-- includes/Namespace.php | 2 +- includes/QueryPage.php | 2 +- includes/StringUtils.php | 2 +- includes/db/LoadBalancer.php | 2 +- includes/filerepo/file/LocalFile.php | 8 ++++---- includes/media/Generic.php | 2 +- includes/parser/LinkHolderArray.php | 2 +- includes/specials/SpecialAllmessages.php | 2 +- includes/specials/SpecialUnblock.php | 2 +- includes/upload/UploadFromChunks.php | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/includes/ConfEditor.php b/includes/ConfEditor.php index 4aecb3d0ac..8fa623396c 100644 --- a/includes/ConfEditor.php +++ b/includes/ConfEditor.php @@ -731,7 +731,7 @@ class ConfEditor { /** * Create a ConfEditorToken from an element of token_get_all() - * @return \ConfEditorToken + * @return ConfEditorToken */ function newTokenObj( $internalToken ) { if ( is_array( $internalToken ) ) { @@ -783,7 +783,7 @@ class ConfEditor { /** * Get the token $offset steps ahead of the current position. * $offset may be negative, to get tokens behind the current position. - * @return \ConfEditorToken + * @return ConfEditorToken */ function getTokenAhead( $offset ) { $pos = $this->pos + $offset; diff --git a/includes/Namespace.php b/includes/Namespace.php index 6ff6f0b916..ac788aaaac 100644 --- a/includes/Namespace.php +++ b/includes/Namespace.php @@ -186,7 +186,7 @@ class MWNamespace { * Returns array of all defined namespaces with their canonical * (English) names. * - * @return \array + * @return array * @since 1.17 */ public static function getCanonicalNamespaces() { diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 4cad43eb3f..75736aa3d6 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -384,7 +384,7 @@ abstract class QueryPage extends SpecialPage { /** * Somewhat deprecated, you probably want to be using execute() - * @return \ResultWrapper + * @return ResultWrapper */ function doQuery( $offset = false, $limit = false ) { if ( $this->isCached() && $this->isCacheable() ) { diff --git a/includes/StringUtils.php b/includes/StringUtils.php index f405e616fe..f20c548d7d 100644 --- a/includes/StringUtils.php +++ b/includes/StringUtils.php @@ -191,7 +191,7 @@ class StringUtils { * Returns an Iterator * @param $separator * @param $subject - * @return \ArrayIterator|\ExplodeIterator + * @return ArrayIterator|\ExplodeIterator */ static function explode( $separator, $subject ) { if ( substr_count( $subject, $separator ) > 1000 ) { diff --git a/includes/db/LoadBalancer.php b/includes/db/LoadBalancer.php index 7f200eae04..1d00f8f277 100644 --- a/includes/db/LoadBalancer.php +++ b/includes/db/LoadBalancer.php @@ -91,7 +91,7 @@ class LoadBalancer { /** * Get or set arbitrary data used by the parent object, usually an LBFactory * @param $x - * @return \Mixed + * @return Mixed */ function parentInfo( $x = null ) { return wfSetVar( $this->mParentInfo, $x ); diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 6fbf9c06ba..0a85fffcc9 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -1646,7 +1646,7 @@ class LocalFileDeleteBatch { /** * Run the transaction - * @return \FileRepoStatus + * @return FileRepoStatus */ function execute() { global $wgUseSquid; @@ -1807,7 +1807,7 @@ class LocalFileRestoreBatch { * rows and there's no need to keep the image row locked while it's acquiring those locks * The caller may have its own transaction open. * So we save the batch and let the caller call cleanup() - * @return \FileRepoStatus + * @return FileRepoStatus */ function execute() { global $wgLang; @@ -2075,7 +2075,7 @@ class LocalFileRestoreBatch { /** * Delete unused files in the deleted zone. * This should be called from outside the transaction in which execute() was called. - * @return \FileRepoStatus|void + * @return FileRepoStatus|void */ function cleanup() { if ( !$this->cleanupBatch ) { @@ -2196,7 +2196,7 @@ class LocalFileMoveBatch { /** * Perform the move. - * @return \FileRepoStatus + * @return FileRepoStatus */ function execute() { $repo = $this->file->repo; diff --git a/includes/media/Generic.php b/includes/media/Generic.php index 70bc449678..c6833f3cfa 100644 --- a/includes/media/Generic.php +++ b/includes/media/Generic.php @@ -188,7 +188,7 @@ abstract class MediaHandler { * @param $dstPath String: filesystem destination path * @param $dstUrl String: Destination URL to use in output HTML * @param $params Array: Arbitrary set of parameters validated by $this->validateParam() - * @return \MediaTransformOutput + * @return MediaTransformOutput */ final function getTransform( $image, $dstPath, $dstUrl, $params ) { return $this->doTransform( $image, $dstPath, $dstUrl, $params, self::TRANSFORM_LATER ); diff --git a/includes/parser/LinkHolderArray.php b/includes/parser/LinkHolderArray.php index 69fd206f2a..b5d5cb42e7 100644 --- a/includes/parser/LinkHolderArray.php +++ b/includes/parser/LinkHolderArray.php @@ -135,7 +135,7 @@ class LinkHolderArray { /** * Get a subset of the current LinkHolderArray which is sufficient to * interpret the given text. - * @return \LinkHolderArray + * @return LinkHolderArray */ function getSubArray( $text ) { $sub = new LinkHolderArray( $this->parent ); diff --git a/includes/specials/SpecialAllmessages.php b/includes/specials/SpecialAllmessages.php index b9f92f8394..148cd30e0b 100644 --- a/includes/specials/SpecialAllmessages.php +++ b/includes/specials/SpecialAllmessages.php @@ -290,7 +290,7 @@ class AllmessagesTablePager extends TablePager { /** * This function normally does a database query to get the results; we need * to make a pretend result using a FakeResultWrapper. - * @return \FakeResultWrapper + * @return FakeResultWrapper */ function reallyDoQuery( $offset, $limit, $descending ) { $result = new FakeResultWrapper( array() ); diff --git a/includes/specials/SpecialUnblock.php b/includes/specials/SpecialUnblock.php index 52218ce335..79e8996fdb 100644 --- a/includes/specials/SpecialUnblock.php +++ b/includes/specials/SpecialUnblock.php @@ -136,7 +136,7 @@ class SpecialUnblock extends SpecialPage { /** * Submit callback for an HTMLForm object - * @return \Array( Array(message key, parameters) + * @return Array( Array(message key, parameters) */ public static function processUIUnblock( array $data, HTMLForm $form ) { return self::processUnblock( $data, $form->getContext() ); diff --git a/includes/upload/UploadFromChunks.php b/includes/upload/UploadFromChunks.php index b77c56035b..11780e43c2 100644 --- a/includes/upload/UploadFromChunks.php +++ b/includes/upload/UploadFromChunks.php @@ -242,7 +242,7 @@ class UploadFromChunks extends UploadFromFile { * Output the chunk to disk * * @param $chunkPath string - * @return \FileRepoStatus + * @return FileRepoStatus */ private function outputChunk( $chunkPath ){ // Key is fileKey + chunk index -- 2.20.1