@@ -348,7 +348,7 @@ |
||
348 | 348 | * ChangeTags::listExplicitlyDefinedTags, will be appended to the <select> |
349 | 349 | * element. |
350 | 350 | * @param string $label The text of a <label> to precede the <select> |
351 | - * @return array HTML <label> element at index 0, HTML <select> element at |
|
351 | + * @return string[] HTML <label> element at index 0, HTML <select> element at |
|
352 | 352 | * index 1 |
353 | 353 | */ |
354 | 354 | protected function getTagSelect( $selectedTags, $label ) { |
@@ -544,7 +544,7 @@ |
||
544 | 544 | * @param array $pageSet |
545 | 545 | * @param string $table |
546 | 546 | * @param array $fields Array of field names |
547 | - * @param array $join |
|
547 | + * @param string[] $join |
|
548 | 548 | * @return array |
549 | 549 | */ |
550 | 550 | private function getLinks( $inputPages, $pageSet, $table, $fields, $join ) { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * Fetch dupes from all connected file repositories. |
61 | 61 | * |
62 | - * @return array Array of File objects |
|
62 | + * @return File[] Array of File objects |
|
63 | 63 | */ |
64 | 64 | function getDupes() { |
65 | 65 | return RepoGroup::singleton()->findBySha1( $this->hash ); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | /** |
69 | 69 | * |
70 | - * @param array $dupes Array of File objects |
|
70 | + * @param File[] $dupes Array of File objects |
|
71 | 71 | */ |
72 | 72 | function showList( $dupes ) { |
73 | 73 | $html = array(); |
@@ -184,6 +184,9 @@ discard block |
||
184 | 184 | } |
185 | 185 | } |
186 | 186 | |
187 | + /** |
|
188 | + * @param File[] $list |
|
189 | + */ |
|
187 | 190 | function doBatchLookups( $list ) { |
188 | 191 | $batch = new LinkBatch(); |
189 | 192 | /** @var File $file */ |
@@ -35,7 +35,6 @@ |
||
35 | 35 | /** |
36 | 36 | * Implement by redirecting through Special:Redirect/file. |
37 | 37 | * |
38 | - * @param string|null $subpage |
|
39 | 38 | * @return Title |
40 | 39 | */ |
41 | 40 | public function getRedirect( $par ) { |
@@ -233,6 +233,9 @@ |
||
233 | 233 | } |
234 | 234 | } |
235 | 235 | |
236 | + /** |
|
237 | + * @param string $sourceName |
|
238 | + */ |
|
236 | 239 | private function getMappingFormPart( $sourceName ) { |
237 | 240 | $isSameSourceAsBefore = ( $this->sourceName === $sourceName ); |
238 | 241 | $defaultNamespace = $this->getConfig()->get( 'ImportTargetNamespace' ); |
@@ -144,6 +144,9 @@ discard block |
||
144 | 144 | return $subpages; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $par |
|
149 | + */ |
|
147 | 150 | private function parseParams( FormOptions $opts, $par ) { |
148 | 151 | # Get parameters |
149 | 152 | $parms = explode( '/', ( $par = ( $par !== null ) ? $par : '' ) ); |
@@ -215,6 +218,9 @@ discard block |
||
215 | 218 | } |
216 | 219 | } |
217 | 220 | |
221 | + /** |
|
222 | + * @param string $formcontents |
|
223 | + */ |
|
218 | 224 | private function getActionButtons( $formcontents ) { |
219 | 225 | $user = $this->getUser(); |
220 | 226 | $canRevDelete = $user->isAllowedAll( 'deletedhistory', 'deletelogentry' ); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | * |
101 | 101 | * It's important that img_media_type come first, otherwise the |
102 | 102 | * tables will be fragmented. |
103 | - * @return Array Fields to sort by |
|
103 | + * @return string[] Fields to sort by |
|
104 | 104 | */ |
105 | 105 | function getOrderFields() { |
106 | 106 | return array( 'img_media_type', 'count(*)', 'img_major_mime', 'img_minor_mime' ); |
@@ -169,8 +169,9 @@ discard block |
||
169 | 169 | * Output a row of the stats table |
170 | 170 | * |
171 | 171 | * @param $mime String mime type (e.g. image/jpeg) |
172 | - * @param $count integer Number of images of this type |
|
172 | + * @param integer $count integer Number of images of this type |
|
173 | 173 | * @param $totalBytes integer Total space for images of this type |
174 | + * @param integer $bytes |
|
174 | 175 | */ |
175 | 176 | protected function outputTableRow( $mime, $count, $bytes ) { |
176 | 177 | $mimeSearch = SpecialPage::getTitleFor( 'MIMEsearch', $mime ); |
@@ -757,6 +757,9 @@ discard block |
||
757 | 757 | WatchAction::doWatchOrUnwatch( $this->watch, $nt, $user ); |
758 | 758 | } |
759 | 759 | |
760 | + /** |
|
761 | + * @param Title $title |
|
762 | + */ |
|
760 | 763 | function showLogFragment( $title ) { |
761 | 764 | $moveLogPage = new LogPage( 'move' ); |
762 | 765 | $out = $this->getOutput(); |
@@ -764,6 +767,9 @@ discard block |
||
764 | 767 | LogEventsList::showLogExtract( $out, 'move', $title ); |
765 | 768 | } |
766 | 769 | |
770 | + /** |
|
771 | + * @param Title $title |
|
772 | + */ |
|
767 | 773 | function showSubpages( $title ) { |
768 | 774 | if ( !MWNamespace::hasSubpages( $title->getNamespace() ) ) { |
769 | 775 | return; |
@@ -39,6 +39,9 @@ discard block |
||
39 | 39 | parent::__construct( 'Newpages' ); |
40 | 40 | } |
41 | 41 | |
42 | + /** |
|
43 | + * @param string $par |
|
44 | + */ |
|
42 | 45 | protected function setup( $par ) { |
43 | 46 | // Options |
44 | 47 | $opts = new FormOptions(); |
@@ -456,6 +459,9 @@ discard block |
||
456 | 459 | } |
457 | 460 | } |
458 | 461 | |
462 | + /** |
|
463 | + * @return string |
|
464 | + */ |
|
459 | 465 | protected function feedItemAuthor( $row ) { |
460 | 466 | return isset( $row->rc_user_text ) ? $row->rc_user_text : ''; |
461 | 467 | } |
@@ -491,6 +497,9 @@ discard block |
||
491 | 497 | */ |
492 | 498 | protected $mForm; |
493 | 499 | |
500 | + /** |
|
501 | + * @param SpecialNewpages $form |
|
502 | + */ |
|
494 | 503 | function __construct( $form, FormOptions $opts ) { |
495 | 504 | parent::__construct( $form->getContext() ); |
496 | 505 | $this->mForm = $form; |