@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | /** |
424 | 424 | * Return the list of revision fields that should be selected to create |
425 | 425 | * a new revision. |
426 | - * @return array |
|
426 | + * @return string[] |
|
427 | 427 | */ |
428 | 428 | public static function selectFields() { |
429 | 429 | global $wgContentHandlerUseDB; |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | /** |
455 | 455 | * Return the list of revision fields that should be selected to create |
456 | 456 | * a new revision from an archive row. |
457 | - * @return array |
|
457 | + * @return string[] |
|
458 | 458 | */ |
459 | 459 | public static function selectArchiveFields() { |
460 | 460 | global $wgContentHandlerUseDB; |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | /** |
486 | 486 | * Return the list of text fields that should be selected to read the |
487 | 487 | * revision text |
488 | - * @return array |
|
488 | + * @return string[] |
|
489 | 489 | */ |
490 | 490 | public static function selectTextFields() { |
491 | 491 | return [ |
@@ -496,7 +496,7 @@ discard block |
||
496 | 496 | |
497 | 497 | /** |
498 | 498 | * Return the list of page fields that should be selected from page table |
499 | - * @return array |
|
499 | + * @return string[] |
|
500 | 500 | */ |
501 | 501 | public static function selectPageFields() { |
502 | 502 | return [ |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | |
512 | 512 | /** |
513 | 513 | * Return the list of user fields that should be selected from user table |
514 | - * @return array |
|
514 | + * @return string[] |
|
515 | 515 | */ |
516 | 516 | public static function selectUserFields() { |
517 | 517 | return [ 'user_name' ]; |
@@ -756,7 +756,7 @@ discard block |
||
756 | 756 | /** |
757 | 757 | * Returns the base36 sha1 of the text in this revision, or null if unknown. |
758 | 758 | * |
759 | - * @return string|null |
|
759 | + * @return string |
|
760 | 760 | */ |
761 | 761 | public function getSha1() { |
762 | 762 | return $this->mSha1; |
@@ -838,7 +838,7 @@ discard block |
||
838 | 838 | /** |
839 | 839 | * Fetch revision's user id without regard for the current user's permissions |
840 | 840 | * |
841 | - * @return string |
|
841 | + * @return integer |
|
842 | 842 | * @deprecated since 1.25, use getUser( Revision::RAW ) |
843 | 843 | */ |
844 | 844 | public function getRawUser() { |
@@ -1758,7 +1758,7 @@ discard block |
||
1758 | 1758 | * |
1759 | 1759 | * @param Title $title |
1760 | 1760 | * @param int $id |
1761 | - * @return string|bool False if not found |
|
1761 | + * @return string|false False if not found |
|
1762 | 1762 | */ |
1763 | 1763 | static function getTimestampFromId( $title, $id, $flags = 0 ) { |
1764 | 1764 | $db = ( $flags & self::READ_LATEST ) |
@@ -1814,7 +1814,7 @@ discard block |
||
1814 | 1814 | * @since 1.20 |
1815 | 1815 | * @deprecated since 1.24 |
1816 | 1816 | * |
1817 | - * @param IDatabase|int $db The Database to perform the check on. May be given as a |
|
1817 | + * @param integer $db The Database to perform the check on. May be given as a |
|
1818 | 1818 | * Database object or a database identifier usable with wfGetDB. |
1819 | 1819 | * @param int $pageId The ID of the page in question |
1820 | 1820 | * @param int $userId The ID of the user in question |
@@ -130,6 +130,11 @@ |
||
130 | 130 | } |
131 | 131 | } |
132 | 132 | |
133 | + /** |
|
134 | + * @param string $code |
|
135 | + * |
|
136 | + * @return string |
|
137 | + */ |
|
133 | 138 | protected function getFileName( $code ) { |
134 | 139 | if ( strval( $code ) === '' || strpos( $code, '/' ) !== false ) { |
135 | 140 | throw new MWException( __METHOD__ . ": Invalid language \"$code\"" ); |
@@ -691,7 +691,7 @@ |
||
691 | 691 | * |
692 | 692 | * @param string $code |
693 | 693 | * @param array $deps |
694 | - * @return array |
|
694 | + * @return string |
|
695 | 695 | */ |
696 | 696 | protected function readSourceFilesAndRegisterDeps( $code, &$deps ) { |
697 | 697 | global $IP; |
@@ -97,6 +97,10 @@ discard block |
||
97 | 97 | */ |
98 | 98 | public $custom; |
99 | 99 | |
100 | + /** |
|
101 | + * @param SpecialAllMessages $page |
|
102 | + * @param Language $langObj |
|
103 | + */ |
|
100 | 104 | function __construct( $page, $conds, $langObj = null ) { |
101 | 105 | parent::__construct( $page->getContext() ); |
102 | 106 | $this->mIndexField = 'am_title'; |
@@ -223,6 +227,9 @@ discard block |
||
223 | 227 | return $out; |
224 | 228 | } |
225 | 229 | |
230 | + /** |
|
231 | + * @param boolean $descending |
|
232 | + */ |
|
226 | 233 | function getAllMessages( $descending ) { |
227 | 234 | $messageNames = Language::getLocalisationCache()->getSubitemList( 'en', 'messages' ); |
228 | 235 | |
@@ -247,7 +254,7 @@ discard block |
||
247 | 254 | * @param array $messageNames |
248 | 255 | * @param string $langcode What language code |
249 | 256 | * @param bool $foreign Whether the $langcode is not the content language |
250 | - * @return array A 'pages' and 'talks' array with the keys of existing pages |
|
257 | + * @return string A 'pages' and 'talks' array with the keys of existing pages |
|
251 | 258 | */ |
252 | 259 | public static function getCustomisedStatuses( $messageNames, $langcode = 'en', $foreign = false ) { |
253 | 260 | // FIXME: This function should be moved to Language:: or something. |
@@ -439,6 +446,9 @@ discard block |
||
439 | 446 | return $arr; |
440 | 447 | } |
441 | 448 | |
449 | + /** |
|
450 | + * @param string $field |
|
451 | + */ |
|
442 | 452 | function getCellAttrs( $field, $value ) { |
443 | 453 | if ( $this->mCurrentRow->am_customised && $field === 'am_title' ) { |
444 | 454 | return array( 'rowspan' => '2', 'class' => $field ); |
@@ -179,6 +179,9 @@ |
||
179 | 179 | return Html::rawElement( 'li', null, $this->getLanguage()->specialList( $link, $count ) ) . "\n"; |
180 | 180 | } |
181 | 181 | |
182 | + /** |
|
183 | + * @param string $from |
|
184 | + */ |
|
182 | 185 | public function getStartForm( $from ) { |
183 | 186 | return Xml::tags( |
184 | 187 | 'form', |
@@ -35,6 +35,9 @@ |
||
35 | 35 | */ |
36 | 36 | protected $mNavigationBar; |
37 | 37 | |
38 | + /** |
|
39 | + * @param string|null $target |
|
40 | + */ |
|
38 | 41 | function __construct( IContextSource $context, $target, $namespace = false ) { |
39 | 42 | parent::__construct( $context ); |
40 | 43 | $msgs = [ 'deletionlog', 'undeleteviewlink', 'diff' ]; |
@@ -32,6 +32,9 @@ |
||
32 | 32 | */ |
33 | 33 | protected $mForm; |
34 | 34 | |
35 | + /** |
|
36 | + * @param SpecialNewpages $form |
|
37 | + */ |
|
35 | 38 | function __construct( $form, FormOptions $opts ) { |
36 | 39 | parent::__construct( $form->getContext() ); |
37 | 40 | $this->mForm = $form; |
@@ -198,6 +198,12 @@ |
||
198 | 198 | class ProtectedTitlesPager extends AlphabeticPager { |
199 | 199 | public $mForm, $mConds; |
200 | 200 | |
201 | + /** |
|
202 | + * @param SpecialProtectedtitles $form |
|
203 | + * @param null|string $type |
|
204 | + * @param null|string $level |
|
205 | + * @param integer|null $namespace |
|
206 | + */ |
|
201 | 207 | function __construct( $form, $conds = array(), $type, $level, $namespace, |
202 | 208 | $sizetype = '', $size = 0 |
203 | 209 | ) { |
@@ -128,7 +128,7 @@ |
||
128 | 128 | /** |
129 | 129 | * Generates the subheading with links |
130 | 130 | * @param User $userObj User object for the target |
131 | - * @return string Appropriately-escaped HTML to be output literally |
|
131 | + * @return Message Appropriately-escaped HTML to be output literally |
|
132 | 132 | * @todo FIXME: Almost the same as contributionsSub in SpecialContributions.php. Could be combined. |
133 | 133 | */ |
134 | 134 | function getSubTitle( $userObj ) { |