Index: trunk/phase3/languages/LanguageConverter.php |
— | — | @@ -305,9 +305,9 @@ |
306 | 306 | * If you want to parse rules, try to use convert() or |
307 | 307 | * convertTo(). |
308 | 308 | * |
309 | | - * @param $text String: the text to be converted |
310 | | - * @param $toVariant String: the target language code |
311 | | - * @return String: the converted text |
| 309 | + * @param $text String the text to be converted |
| 310 | + * @param $toVariant bool|string the target language code |
| 311 | + * @return String the converted text |
312 | 312 | */ |
313 | 313 | public function autoConvert( $text, $toVariant = false ) { |
314 | 314 | wfProfileIn( __METHOD__ ); |
— | — | @@ -481,7 +481,7 @@ |
482 | 482 | /** |
483 | 483 | * Apply manual conversion rules. |
484 | 484 | * |
485 | | - * @param $convRule Object: Object of ConverterRule |
| 485 | + * @param $convRule ConverterRule Object of ConverterRule |
486 | 486 | */ |
487 | 487 | protected function applyManualConv( $convRule ) { |
488 | 488 | // Use syntax -{T|zh-cn:TitleCN; zh-tw:TitleTw}- to custom |
— | — | @@ -521,7 +521,7 @@ |
522 | 522 | * Auto convert a Title object to a readable string in the |
523 | 523 | * preferred variant. |
524 | 524 | * |
525 | | - * @param $title Object: a object of Title |
| 525 | + * @param $title Title a object of Title |
526 | 526 | * @return String: converted title text |
527 | 527 | */ |
528 | 528 | public function convertTitle( $title ) { |
— | — | @@ -622,7 +622,9 @@ |
623 | 623 | * |
624 | 624 | * @param $text String: text to be converted |
625 | 625 | * @param $variant String: the target variant code |
| 626 | + * @param $startPos int |
626 | 627 | * @param $depth Integer: depth of recursion |
| 628 | + * |
627 | 629 | * @return String: converted text |
628 | 630 | */ |
629 | 631 | protected function recursiveConvertRule( $text, $variant, &$startPos, $depth = 0 ) { |
— | — | @@ -993,6 +995,10 @@ |
994 | 996 | /** |
995 | 997 | * Convert the sorting key for category links. This should make different |
996 | 998 | * keys that are variants of each other map to the same key. |
| 999 | + * |
| 1000 | + * @param $key string |
| 1001 | + * |
| 1002 | + * @return string |
997 | 1003 | */ |
998 | 1004 | function convertCategoryKey( $key ) { |
999 | 1005 | return $key; |
— | — | @@ -1003,7 +1009,7 @@ |
1004 | 1010 | * MediaWiki:Conversiontable* is updated. |
1005 | 1011 | * @private |
1006 | 1012 | * |
1007 | | - * @param $article Object: Article object |
| 1013 | + * @param $article Article object |
1008 | 1014 | * @param $user Object: User object for the current user |
1009 | 1015 | * @param $text String: article text (?) |
1010 | 1016 | * @param $summary String: edit summary of the edit |
— | — | @@ -1260,6 +1266,8 @@ |
1261 | 1267 | * Parse rules conversion. |
1262 | 1268 | * @private |
1263 | 1269 | * |
| 1270 | + * @param $variant |
| 1271 | + * |
1264 | 1272 | * @return string |
1265 | 1273 | */ |
1266 | 1274 | function getRuleConvertedStr( $variant ) { |
— | — | @@ -1486,6 +1494,7 @@ |
1487 | 1495 | |
1488 | 1496 | /** |
1489 | 1497 | * Return how deal with conversion rules. |
| 1498 | + * @return string |
1490 | 1499 | */ |
1491 | 1500 | public function getRulesAction() { |
1492 | 1501 | return $this->mRulesAction; |
— | — | @@ -1494,6 +1503,7 @@ |
1495 | 1504 | /** |
1496 | 1505 | * Get conversion table. (bidirectional and unidirectional |
1497 | 1506 | * conversion table) |
| 1507 | + * @return array |
1498 | 1508 | */ |
1499 | 1509 | public function getConvTable() { |
1500 | 1510 | return $this->mConvTable; |
— | — | @@ -1501,6 +1511,7 @@ |
1502 | 1512 | |
1503 | 1513 | /** |
1504 | 1514 | * Get conversion rules string. |
| 1515 | + * @return string |
1505 | 1516 | */ |
1506 | 1517 | public function getRules() { |
1507 | 1518 | return $this->mRules; |
— | — | @@ -1508,6 +1519,7 @@ |
1509 | 1520 | |
1510 | 1521 | /** |
1511 | 1522 | * Get conversion flags. |
| 1523 | + * @return array |
1512 | 1524 | */ |
1513 | 1525 | public function getFlags() { |
1514 | 1526 | return $this->mFlags; |
Index: trunk/phase3/languages/Language.php |
— | — | @@ -1721,7 +1721,7 @@ |
1722 | 1722 | * @param $adj Bool: whether to adjust the time output according to the |
1723 | 1723 | * user configured offset ($timecorrection) |
1724 | 1724 | * @param $format Mixed: true to use user's date format preference |
1725 | | - * @param $timecorrection String: the time offset as returned by |
| 1725 | + * @param $timecorrection String|bool the time offset as returned by |
1726 | 1726 | * validateTimeZone() in Special:Preferences |
1727 | 1727 | * @return string |
1728 | 1728 | */ |
— | — | @@ -1740,7 +1740,7 @@ |
1741 | 1741 | * @param $adj Bool: whether to adjust the time output according to the |
1742 | 1742 | * user configured offset ($timecorrection) |
1743 | 1743 | * @param $format Mixed: true to use user's date format preference |
1744 | | - * @param $timecorrection String: the time offset as returned by |
| 1744 | + * @param $timecorrection String|bool the time offset as returned by |
1745 | 1745 | * validateTimeZone() in Special:Preferences |
1746 | 1746 | * @return string |
1747 | 1747 | */ |
— | — | @@ -1760,7 +1760,7 @@ |
1761 | 1761 | * user configured offset ($timecorrection) |
1762 | 1762 | * @param $format Mixed: what format to return, if it's false output the |
1763 | 1763 | * default one (default true) |
1764 | | - * @param $timecorrection String: the time offset as returned by |
| 1764 | + * @param $timecorrection String|bool the time offset as returned by |
1765 | 1765 | * validateTimeZone() in Special:Preferences |
1766 | 1766 | * @return string |
1767 | 1767 | */ |
— | — | @@ -2756,7 +2756,7 @@ |
2757 | 2757 | * @param string $text HTML string to truncate |
2758 | 2758 | * @param int $length (zero/positive) Maximum length (including ellipses) |
2759 | 2759 | * @param string $ellipsis String to append to the truncated text |
2760 | | - * @returns string |
| 2760 | + * @return string |
2761 | 2761 | */ |
2762 | 2762 | function truncateHtml( $text, $length, $ellipsis = '...' ) { |
2763 | 2763 | # Use the localized ellipsis character |