X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2FLanguage.php;h=ce6d0f70555271e8bc484c04ae76d3dbee740ccc;hb=396927c0b6b06a148767df431eca697f078bb55f;hp=8b41b4efc49c11a2f29ee58a2115150549866895;hpb=f0edb3e368a5fc69218d20f76f1538b68f37db42;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/Language.php b/languages/Language.php index 8b41b4efc4..ce6d0f7055 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -345,7 +345,7 @@ class Language { /** * Returns true if a language code is an IETF tag known to MediaWiki. * - * @param string $code + * @param string $tag * * @since 1.21 * @return bool @@ -1026,6 +1026,11 @@ class Language { /** * Pass through result from $dateTimeObj->format() + * @param DateTime|bool|null &$dateTimeObj + * @param string $ts + * @param DateTimeZone|bool|null $zone + * @param string $code + * @return string */ private static function dateTimeObjFormat( &$dateTimeObj, $ts, $zone, $code ) { if ( !$dateTimeObj ) { @@ -2351,7 +2356,7 @@ class Language { * Get the formatted date and time for the given timestamp and formatted for * the given user. * - * @param mixed $ts the time format which needs to be turned into a + * @param mixed $ts The time format which needs to be turned into a * date('YmdHis') format with wfTimestamp(TS_MW,$ts) * @param User $user User object used to get preferences for timezone and format * @param array $options Array, can contain the following keys: @@ -3786,8 +3791,8 @@ class Language { * * @since 1.23 * - * @param int $count non-localized number - * @param array $forms different plural forms + * @param int $count Non-localized number + * @param array $forms Different plural forms * * @return array|string */ @@ -3808,8 +3813,8 @@ class Language { * Checks that convertPlural was given an array and pads it to requested * amount of forms by copying the last one. * - * @param int $count How many forms should there be at least * @param array $forms Array of forms given to convertPlural + * @param int $count How many forms should there be at least * @return array Padded array of forms or an exception if not an array */ protected function preConvertPlural( /* Array */ $forms, $count ) { @@ -4024,12 +4029,12 @@ class Language { * possible that non-existing link in one variant * actually exists in another variant. this function * tries to find it. See e.g. LanguageZh.php + * The input parameters may be modified upon return * - * @param string $link The name of the link - * @param Title $nt The title object of the link + * @param string &$link The name of the link + * @param Title &$nt The title object of the link * @param bool $ignoreOtherCond To disable other conditions when * we need to transclude a template or update a category's link - * @return null the input parameters may be modified upon return */ public function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) { $this->mConverter->findVariantLink( $link, $nt, $ignoreOtherCond ); @@ -4611,7 +4616,7 @@ class Language { * @param Title $title Title object to link * @param int $offset * @param int $limit - * @param array|string $query Optional URL query parameter string + * @param array $query Optional URL query parameter string * @param bool $atend Optional param for specified if this is the last page * @return string */ @@ -4740,6 +4745,7 @@ class Language { /** * Find the index number of the plural rule appropriate for the given number + * @param int $number * @return int The index number of the plural rule */ public function getPluralRuleIndexNumber( $number ) { @@ -4753,6 +4759,7 @@ class Language { * For example, if the language is set to Arabic, getPluralType(5) should * return 'few'. * @since 1.22 + * @param int $number * @return string The name of the plural rule type, e.g. one, two, few, many */ public function getPluralRuleType( $number ) {