@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Retrieve the work from cache |
50 | - * @return mixed Work result or false |
|
50 | + * @return boolean Work result or false |
|
51 | 51 | */ |
52 | 52 | public function getCachedWork() { |
53 | 53 | return false; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * A work not so good (eg. expired one) but better than an error |
58 | 58 | * message. |
59 | - * @return mixed Work result or false |
|
59 | + * @return boolean Work result or false |
|
60 | 60 | */ |
61 | 61 | public function fallback() { |
62 | 62 | return false; |
@@ -1084,6 +1084,7 @@ |
||
1084 | 1084 | |
1085 | 1085 | /** |
1086 | 1086 | * Dummy, kept for backwards-compatibility. |
1087 | + * @param User $user |
|
1087 | 1088 | */ |
1088 | 1089 | static function miscPreferences( $user, IContextSource $context, &$defaultPreferences ) { |
1089 | 1090 | } |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | * When implemented in a descendant class, receives an array of titles as strings and returns |
132 | 132 | * either an unmodified array or an array of Title objects corresponding to strings received. |
133 | 133 | * |
134 | - * @param array $strings |
|
134 | + * @param string[] $strings |
|
135 | 135 | * |
136 | 136 | * @return array |
137 | 137 | */ |
@@ -164,6 +164,10 @@ discard block |
||
164 | 164 | return $this->strings( $this->handleResultFromHook( $srchres, $namespaces, $search, $limit ) ); |
165 | 165 | } |
166 | 166 | |
167 | + /** |
|
168 | + * @param string $search |
|
169 | + * @param integer $limit |
|
170 | + */ |
|
167 | 171 | private function handleResultFromHook( $srchres, $namespaces, $search, $limit ) { |
168 | 172 | $rescorer = new SearchExactMatchRescorer(); |
169 | 173 | return $rescorer->rescore( $search, $namespaces, $srchres, $limit ); |
@@ -312,7 +312,7 @@ |
||
312 | 312 | * Convert passed image data, which is assumed to be SVG, to PNG. |
313 | 313 | * |
314 | 314 | * @param string $svg SVG image data |
315 | - * @return string|bool PNG image data, or false on failure |
|
315 | + * @return string|false PNG image data, or false on failure |
|
316 | 316 | */ |
317 | 317 | protected function rasterize( $svg ) { |
318 | 318 | /** |
@@ -26,6 +26,9 @@ |
||
26 | 26 | /** @var File */ |
27 | 27 | public $file; |
28 | 28 | |
29 | + /** |
|
30 | + * @param RevDelFileList $list |
|
31 | + */ |
|
29 | 32 | public function __construct( $list, $row ) { |
30 | 33 | parent::__construct( $list, $row ); |
31 | 34 | $this->file = RepoGroup::singleton()->getLocalRepo()->newFileFromRow( $row ); |
@@ -26,6 +26,9 @@ |
||
26 | 26 | /** @var Revision */ |
27 | 27 | public $revision; |
28 | 28 | |
29 | + /** |
|
30 | + * @param RevDelRevisionList $list |
|
31 | + */ |
|
29 | 32 | public function __construct( $list, $row ) { |
30 | 33 | parent::__construct( $list, $row ); |
31 | 34 | $this->revision = new Revision( $row ); |
@@ -120,6 +120,7 @@ |
||
120 | 120 | * Returns an array where the element of $array at index $key becomes |
121 | 121 | * the first element. |
122 | 122 | * @param int $key key to pull to the front |
123 | + * @param string[] $array |
|
123 | 124 | * @return array $array with the item at $key pulled to the front |
124 | 125 | */ |
125 | 126 | private function pullFront( $key, $array ) { |
@@ -440,7 +440,7 @@ |
||
440 | 440 | * Basic wikitext removal |
441 | 441 | * @protected |
442 | 442 | * @param string $text |
443 | - * @return mixed |
|
443 | + * @return string |
|
444 | 444 | */ |
445 | 445 | function removeWiki( $text ) { |
446 | 446 | $text = preg_replace( "/\\{\\{([^|]+?)\\}\\}/", "", $text ); |
@@ -173,6 +173,10 @@ discard block |
||
173 | 173 | return $this->searchInternal( $term, false ); |
174 | 174 | } |
175 | 175 | |
176 | + /** |
|
177 | + * @param string $term |
|
178 | + * @param boolean $fulltext |
|
179 | + */ |
|
176 | 180 | protected function searchInternal( $term, $fulltext ) { |
177 | 181 | // This seems out of place, why is this called with empty term? |
178 | 182 | if ( trim( $term ) === '' ) { |
@@ -377,7 +381,7 @@ discard block |
||
377 | 381 | * Converts some characters for MySQL's indexing to grok it correctly, |
378 | 382 | * and pads short words to overcome limitations. |
379 | 383 | * @param string $string |
380 | - * @return mixed|string |
|
384 | + * @return string |
|
381 | 385 | */ |
382 | 386 | function normalizeText( $string ) { |
383 | 387 | global $wgContLang; |