X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcollation%2FNumericUppercaseCollation.php;h=4a2d776f67b9c948bd0f2b6ef5235e6ed3c47832;hb=395b9c81ffcc11b6a564a26418dad990e1a708d5;hp=2d2ca47bcf986dcdcfba0516b52fd4e4982cb0a5;hpb=6124d71e25c2894c3e025c20e81ff742045e8cd5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/collation/NumericUppercaseCollation.php b/includes/collation/NumericUppercaseCollation.php index 2d2ca47bcf..4a2d776f67 100644 --- a/includes/collation/NumericUppercaseCollation.php +++ b/includes/collation/NumericUppercaseCollation.php @@ -25,7 +25,7 @@ * or pretty-formatted numbers may be unexpected. * * Digits will be based on the wiki's content language settings. If - * you change the content langauge of a wiki you will need to run + * you change the content language of a wiki you will need to run * updateCollation.php --force. Only English (ASCII 0-9) and the * localized version will be counted. Localized digits from other languages * or weird unicode digit equivalents (e.g. 4, 𝟜, ⓸ , ⁴, etc) will not count. @@ -40,9 +40,7 @@ class NumericUppercaseCollation extends UppercaseCollation { private $digitTransformLang; /** - * Constructor - * - * @param $lang Language How to convert digits. + * @param Language $lang How to convert digits. * For example, if given language "my" than ၇ is treated like 7. * * It is expected that usually this is given $wgContLang. @@ -78,8 +76,8 @@ class NumericUppercaseCollation extends UppercaseCollation { * * based on Language::parseFormattedNumber but without commas. * - * @param $string String sortkey to unlocalize digits of - * @return String Sortkey with all localized digits replaced with ASCII digits. + * @param string $string sortkey to unlocalize digits of + * @return string Sortkey with all localized digits replaced with ASCII digits. */ private function convertDigits( $string ) { $table = $this->digitTransformLang->digitTransformTable();