Index: trunk/phase3/languages/LanguageConverter.php |
— | — | @@ -1015,8 +1015,8 @@ |
1016 | 1016 | * @param $summary String: edit summary of the edit |
1017 | 1017 | * @param $isMinor Boolean: was the edit marked as minor? |
1018 | 1018 | * @param $isWatch Boolean: did the user watch this page or not? |
1019 | | - * @param $section Unused |
1020 | | - * @param $flags Bitfield |
| 1019 | + * @param $section |
| 1020 | + * @param $flags int Bitfield |
1021 | 1021 | * @param $revision Object: new Revision object or null |
1022 | 1022 | * @return Boolean: true |
1023 | 1023 | */ |
Index: trunk/phase3/languages/Language.php |
— | — | @@ -29,6 +29,10 @@ |
30 | 30 | * @ingroup Language |
31 | 31 | */ |
32 | 32 | class FakeConverter { |
| 33 | + |
| 34 | + /** |
| 35 | + * @var Language |
| 36 | + */ |
33 | 37 | var $mLang; |
34 | 38 | function __construct( $langobj ) { $this->mLang = $langobj; } |
35 | 39 | function autoConvertToAllVariants( $text ) { return array( $this->mLang->getCode() => $text ); } |
— | — | @@ -3131,7 +3135,7 @@ |
3132 | 3136 | * (b) clear $tag value |
3133 | 3137 | * @param &$tag string Current HTML tag name we are looking at |
3134 | 3138 | * @param $tagType int (0-open tag, 1-close tag) |
3135 | | - * @param $lastCh char|string Character before the '>' that ended this tag |
| 3139 | + * @param $lastCh string Character before the '>' that ended this tag |
3136 | 3140 | * @param &$openTags array Open tag stack (not accounting for $tag) |
3137 | 3141 | */ |
3138 | 3142 | private function truncate_endBracket( &$tag, $tagType, $lastCh, &$openTags ) { |
— | — | @@ -3244,7 +3248,7 @@ |
3245 | 3249 | * match up with it. |
3246 | 3250 | * |
3247 | 3251 | * @param $str String: the validated block duration in English |
3248 | | - * @return Somehow translated block duration |
| 3252 | + * @return string Somehow translated block duration |
3249 | 3253 | * @see LanguageFi.php for example implementation |
3250 | 3254 | */ |
3251 | 3255 | function translateBlockExpiry( $str ) { |
— | — | @@ -3583,7 +3587,7 @@ |
3584 | 3588 | * |
3585 | 3589 | * @param $code string |
3586 | 3590 | * |
3587 | | - * @return false|string |
| 3591 | + * @return bool|string |
3588 | 3592 | */ |
3589 | 3593 | public static function getFallbackFor( $code ) { |
3590 | 3594 | if ( $code === 'en' || !Language::isValidBuiltInCode( $code ) ) { |
Index: trunk/extensions/Translate/utils/TTMServer.php |
— | — | @@ -70,13 +70,15 @@ |
71 | 71 | } |
72 | 72 | } |
73 | 73 | |
| 74 | + /** |
| 75 | + * @param $mode int |
| 76 | + * @return DatabaseBase |
| 77 | + */ |
74 | 78 | public function getDB( $mode = DB_SLAVE ) { |
75 | 79 | return wfGetDB( $mode, 'ttmserver', $this->config['database'] ); |
76 | 80 | } |
77 | 81 | |
78 | 82 | public function update( MessageHandle $handle, $targetText ) { |
79 | | - global $wgContLang; |
80 | | - |
81 | 83 | if ( !$handle->isValid() || $handle->getCode() === '' ) { |
82 | 84 | return false; |
83 | 85 | } |
Index: trunk/extensions/WebFonts/WebFonts.hooks.php |
— | — | @@ -59,6 +59,8 @@ |
60 | 60 | |
61 | 61 | /** |
62 | 62 | * Hook: ResourceLoaderGetConfigVars |
| 63 | + * @param $vars array |
| 64 | + * @return bool |
63 | 65 | */ |
64 | 66 | public static function addConfig( &$vars ) { |
65 | 67 | $vars['wgWebFontsHelpPage'] = wfMsgForContent( 'webfonts-help-page' ); |