@@ -34,6 +34,9 @@ |
||
34 | 34 | /** @var array Map of (path => 1) for paths to delete on shutdown */ |
35 | 35 | protected static $pathsCollect = null; |
36 | 36 | |
37 | + /** |
|
38 | + * @param string|false $path |
|
39 | + */ |
|
37 | 40 | public function __construct( $path ) { |
38 | 41 | parent::__construct( $path ); |
39 | 42 |
@@ -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 ) { |