From: Sam Reed Date: Thu, 9 Feb 2012 19:29:36 +0000 (+0000) Subject: Fixing some of the "@return true" or "@return false", need to be "@return bool" and... X-Git-Tag: 1.31.0-rc.0~24819 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=0a626db6e1e3d412b2bf96e7c1eca587b55bf678;p=lhc%2Fweb%2Fwiklou.git Fixing some of the "@return true" or "@return false", need to be "@return bool" and then the metadata can say true if foo, false if bar Other documentation improvements --- diff --git a/includes/Linker.php b/includes/Linker.php index 15a91c19bf..6c00903148 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -609,8 +609,9 @@ class Linker { /** * Get the link parameters for MediaTransformOutput::toHtml() from given * frame parameters supplied by the Parser. - * @param $frameParams The frame parameters - * @param $query An optional query string to add to description page links + * @param $frameParams array The frame parameters + * @param $query string An optional query string to add to description page links + * @return array */ private static function getImageLinkMTOParams( $frameParams, $query = '' ) { $mtoParams = array(); @@ -1126,7 +1127,7 @@ class Linker { * Called by Linker::formatComment. * * @param $comment String: comment text - * @param $title An optional title object used to links to sections + * @param $title Title|null An optional title object used to links to sections * @param $local Boolean: whether section links should refer to local page * @return String: formatted comment */ @@ -1205,7 +1206,7 @@ class Linker { * * @todo FIXME: Doesn't handle sub-links as in image thumb texts like the main parser * @param $comment String: text to format links in - * @param $title An optional title object used to links to sections + * @param $title Title|null An optional title object used to links to sections * @param $local Boolean: whether section links should refer to local page * @return String */ @@ -1498,7 +1499,7 @@ class Linker { * Generate a table of contents from a section tree * Currently unused. * - * @param $tree Return value of ParserOutput::getSections() + * @param $tree array Return value of ParserOutput::getSections() * @return String: HTML fragment */ public static function generateTOC( $tree ) { @@ -1708,7 +1709,7 @@ class Linker { * Format a size in bytes for output, using an appropriate * unit (B, KB, MB or GB) according to the magnitude in question * - * @param $size Size to format + * @param $size int Size to format * @return String */ public static function formatSize( $size ) { @@ -1944,7 +1945,7 @@ class Linker { * @param $prefix String: text before link text * @param $aprops String: extra attributes to the a-element * @param $style String: style to apply - if empty, use getInternalLinkAttributesObj instead - * @return the a-element + * @return string the a-element */ static function makeKnownLinkObj( $title, $text = '', $query = '', $trail = '', $prefix = '' , $aprops = '', $style = '' diff --git a/includes/LocalisationCache.php b/includes/LocalisationCache.php index 3b1f45cc16..7e3a09ce53 100644 --- a/includes/LocalisationCache.php +++ b/includes/LocalisationCache.php @@ -793,8 +793,8 @@ class LocalisationCache { interface LCStore { /** * Get a value. - * @param $code Language code - * @param $key Cache key + * @param $code string Language code + * @param $key string Cache key */ function get( $code, $key ); @@ -1164,4 +1164,4 @@ class LocalisationCache_BulkLoad extends LocalisationCache { $this->unload( $code ); } } -} \ No newline at end of file +} diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 972369024f..2cc6f4cbf5 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1309,7 +1309,7 @@ class OutputPage extends ContextSource { /** * Get/set the ParserOptions object to use for wikitext parsing * - * @param $options either the ParserOption to use or null to only get the + * @param $options ParserOptions|null either the ParserOption to use or null to only get the * current ParserOption object * @return ParserOptions object */ @@ -2344,7 +2344,7 @@ $templates * Add a "return to" link pointing to a specified title, * or the title indicated in the request, or else the main page * - * @param $unused No longer used + * @param $unused * @param $returnto Title or String to return to * @param $returntoquery String: query string for the return to link */ @@ -2932,7 +2932,7 @@ $templates } /** - * @param $unused Unused + * @param $unused * @param $addContentType bool * * @return string HTML tag links to be put in the header. diff --git a/includes/SiteConfiguration.php b/includes/SiteConfiguration.php index 8a977fb389..bd5e4d8c32 100644 --- a/includes/SiteConfiguration.php +++ b/includes/SiteConfiguration.php @@ -210,7 +210,7 @@ class SiteConfiguration { * @param $setting String ID of the setting name to retrieve * @param $wiki String Wiki ID of the wiki in question. * @param $suffix String The suffix of the wiki in question. - * @param $var Reference The variable to insert the value into. + * @param $var array Reference The variable to insert the value into. * @param $params Array List of parameters. $.'key' is replaced by $value in all returned data. * @param $wikiTags Array The tags assigned to the wiki. */ diff --git a/includes/Skin.php b/includes/Skin.php index 4d015eb7fb..908a4c9e41 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -317,7 +317,7 @@ abstract class Skin extends ContextSource { * Make a