@@ -118,6 +118,10 @@ discard block |
||
118 | 118 | /** @var string Name of subpage of redirect target */ |
119 | 119 | protected $redirSubpage; |
120 | 120 | |
121 | + /** |
|
122 | + * @param string $name |
|
123 | + * @param string $redirName |
|
124 | + */ |
|
121 | 125 | function __construct( |
122 | 126 | $name, $redirName, $redirSubpage = false, |
123 | 127 | $allowedRedirectParams = [], $addedRedirectParams = [] |
@@ -206,6 +210,10 @@ discard block |
||
206 | 210 | * @ingroup SpecialPage |
207 | 211 | */ |
208 | 212 | abstract class RedirectSpecialArticle extends RedirectSpecialPage { |
213 | + |
|
214 | + /** |
|
215 | + * @param string $name |
|
216 | + */ |
|
209 | 217 | function __construct( $name ) { |
210 | 218 | parent::__construct( $name ); |
211 | 219 | $redirectParams = [ |
@@ -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; |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * Set the browser cookie |
81 | 81 | * @param string $name The name of the cookie. |
82 | 82 | * @param string $value The value to be stored in the cookie. |
83 | - * @param int|null $expire Unix timestamp (in seconds) when the cookie should expire. |
|
83 | + * @param integer $expire Unix timestamp (in seconds) when the cookie should expire. |
|
84 | 84 | * 0 (the default) causes it to expire $wgCookieExpiration seconds from now. |
85 | 85 | * null causes it to be a session cookie. |
86 | 86 | * @param array $options Assoc of additional cookie options: |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | /** |
248 | 248 | * @param string $name The name of the cookie. |
249 | 249 | * @param string $value The value to be stored in the cookie. |
250 | - * @param int|null $expire Ignored in this faux subclass. |
|
250 | + * @param integer $expire Ignored in this faux subclass. |
|
251 | 251 | * @param array $options Ignored in this faux subclass. |
252 | 252 | */ |
253 | 253 | public function setCookie( $name, $value, $expire = 0, $options = [] ) { |
@@ -23,6 +23,10 @@ |
||
23 | 23 | * Item class for a archive table row |
24 | 24 | */ |
25 | 25 | class RevDelArchiveItem extends RevDelRevisionItem { |
26 | + |
|
27 | + /** |
|
28 | + * @param RevDelArchiveList $list |
|
29 | + */ |
|
26 | 30 | public function __construct( $list, $row ) { |
27 | 31 | RevDelItem::__construct( $list, $row ); |
28 | 32 | $this->revision = Revision::newFromArchiveRow( $row, |
@@ -182,6 +182,9 @@ discard block |
||
182 | 182 | */ |
183 | 183 | const RECORD_LENGTH = 14; |
184 | 184 | |
185 | + /** |
|
186 | + * @param string $locale |
|
187 | + */ |
|
185 | 188 | public function __construct( $locale ) { |
186 | 189 | if ( !extension_loaded( 'intl' ) ) { |
187 | 190 | throw new MWException( 'An ICU collation was requested, ' . |
@@ -413,6 +416,8 @@ discard block |
||
413 | 416 | |
414 | 417 | /** |
415 | 418 | * @since 1.16.3 |
419 | + * @param integer $index |
|
420 | + * @return string |
|
416 | 421 | */ |
417 | 422 | public function getLetterByIndex( $index ) { |
418 | 423 | return $this->getFirstLetterData()['chars'][$index]; |
@@ -466,7 +471,7 @@ discard block |
||
466 | 471 | * currently in use, or false when it can't be determined. |
467 | 472 | * |
468 | 473 | * @since 1.21 |
469 | - * @return string|bool |
|
474 | + * @return false|string |
|
470 | 475 | */ |
471 | 476 | static function getUnicodeVersionForICU() { |
472 | 477 | $icuVersion = IcuCollation::getICUVersion(); |
@@ -30,6 +30,9 @@ |
||
30 | 30 | /** @var LocalFile */ |
31 | 31 | protected $lockFile; |
32 | 32 | |
33 | + /** |
|
34 | + * @param RevDelArchivedFileList $list |
|
35 | + */ |
|
33 | 36 | public function __construct( $list, $row ) { |
34 | 37 | RevDelItem::__construct( $list, $row ); |
35 | 38 | $this->file = ArchivedFile::newFromRow( $row ); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @since 1.18 |
105 | 105 | * @param string $feature |
106 | 106 | * @param mixed $data |
107 | - * @return bool |
|
107 | + * @return boolean|null |
|
108 | 108 | */ |
109 | 109 | public function setFeatureData( $feature, $data ) { |
110 | 110 | $this->features[$feature] = $data; |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | |
302 | 302 | /** |
303 | 303 | * Find snippet highlight settings for all users |
304 | - * @return array Contextlines, contextchars |
|
304 | + * @return integer[] Contextlines, contextchars |
|
305 | 305 | */ |
306 | 306 | public static function userHighlightPrefs() { |
307 | 307 | $contextlines = 2; // Hardcode this. Old defaults sucked. :) |
@@ -507,6 +507,7 @@ discard block |
||
507 | 507 | * Process completion search results. |
508 | 508 | * Resolves the titles and rescores. |
509 | 509 | * @param SearchSuggestionSet $suggestions |
510 | + * @param string $search |
|
510 | 511 | * @return SearchSuggestionSet |
511 | 512 | */ |
512 | 513 | protected function processCompletionResults( $search, SearchSuggestionSet $suggestions ) { |
@@ -590,7 +591,7 @@ discard block |
||
590 | 591 | * settings, returning a list of index numbers. |
591 | 592 | * @deprecated since 1.27; use SearchEngineConfig::userNamespaces() |
592 | 593 | * @param user $user |
593 | - * @return array |
|
594 | + * @return integer[] |
|
594 | 595 | */ |
595 | 596 | public static function userNamespaces( $user ) { |
596 | 597 | return MediaWikiServices::getInstance()->getSearchEngineConfig()->userNamespaces( $user ); |
@@ -599,7 +600,7 @@ discard block |
||
599 | 600 | /** |
600 | 601 | * An array of namespaces indexes to be searched by default |
601 | 602 | * @deprecated since 1.27; use SearchEngineConfig::defaultNamespaces() |
602 | - * @return array |
|
603 | + * @return integer[] |
|
603 | 604 | */ |
604 | 605 | public static function defaultNamespaces() { |
605 | 606 | return MediaWikiServices::getInstance()->getSearchEngineConfig()->defaultNamespaces(); |
@@ -610,7 +611,7 @@ discard block |
||
610 | 611 | * and preferences |
611 | 612 | * @deprecated since 1.27; use SearchEngineConfig::namespacesAsText() |
612 | 613 | * @param array $namespaces |
613 | - * @return array |
|
614 | + * @return string[] |
|
614 | 615 | */ |
615 | 616 | public static function namespacesAsText( $namespaces ) { |
616 | 617 | return MediaWikiServices::getInstance()->getSearchEngineConfig()->namespacesAsText( $namespaces ); |
@@ -125,7 +125,7 @@ |
||
125 | 125 | |
126 | 126 | /** |
127 | 127 | * IE<8 has bugs with <button>, so we'll need to avoid them. |
128 | - * @return bool Whether the request is from a bad version of IE |
|
128 | + * @return integer Whether the request is from a bad version of IE |
|
129 | 129 | */ |
130 | 130 | private function isBadIE() { |
131 | 131 | $request = $this->mParent |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * mParams['rows'] is an array with row labels as keys and row tags as values. |
76 | 76 | * mParams['columns'] is an array with column labels as keys and column tags as values. |
77 | 77 | * |
78 | - * @param array $value Array of the options that should be checked |
|
78 | + * @param string $value Array of the options that should be checked |
|
79 | 79 | * |
80 | 80 | * @return string |
81 | 81 | */ |
@@ -151,6 +151,9 @@ discard block |
||
151 | 151 | return $html; |
152 | 152 | } |
153 | 153 | |
154 | + /** |
|
155 | + * @param boolean $checked |
|
156 | + */ |
|
154 | 157 | protected function getOneCheckbox( $checked, $attribs ) { |
155 | 158 | if ( $this->mParent instanceof OOUIHTMLForm ) { |
156 | 159 | return new OOUI\CheckboxInputWidget( array( |