X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27votes%27%2C%20votes=%27waiting%27%29%20%7D%7D?a=blobdiff_plain;f=languages%2FLanguage.php;h=2bc4554e5dc711050ffb787d6e5d645fa82d2d5f;hb=a7ab193d45814db08d017f260b99d4884c8efc26;hp=5b10f0f047315749b469cb42860c3d53edf8aa9b;hpb=3c64eb81bdf669a63628ca2fcf37be1241220e9a;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/Language.php b/languages/Language.php index 5b10f0f047..2bc4554e5d 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -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 ) { @@ -3992,7 +3997,7 @@ class Language { * Get the list of variants supported by this language * see sample implementation in LanguageZh.php * - * @return array an array of language codes + * @return array An array of language codes */ public function getVariants() { return $this->mConverter->getVariants(); @@ -4284,7 +4289,7 @@ class Language { * * @since 1.22 * @param string $code Language code - * @return array array( fallbacks, site fallbacks ) + * @return array Array( fallbacks, site fallbacks ) */ public static function getFallbacksIncludingSiteLanguage( $code ) { global $wgLanguageCode; @@ -4339,7 +4344,7 @@ class Language { * * @since 1.19 * @param string $code Language code - * @return array of message keys (strings) + * @return array Array of message keys (strings) */ public static function getMessageKeysFor( $code ) { return self::getLocalisationCache()->getSubItemList( $code, 'messages' ); @@ -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 ) {