@@ -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(); |
@@ -457,6 +460,9 @@ discard block |
||
457 | 460 | } |
458 | 461 | } |
459 | 462 | |
463 | + /** |
|
464 | + * @return string |
|
465 | + */ |
|
460 | 466 | protected function feedItemAuthor( $row ) { |
461 | 467 | return isset( $row->rc_user_text ) ? $row->rc_user_text : ''; |
462 | 468 | } |
@@ -56,6 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @param string $text |
58 | 58 | * @param int $flags |
59 | + * @param string $tree |
|
59 | 60 | */ |
60 | 61 | protected function cacheSetTree( $text, $flags, $tree ) { |
61 | 62 | $config = RequestContext::getMain()->getConfig(); |
@@ -84,7 +85,7 @@ discard block |
||
84 | 85 | * |
85 | 86 | * @param string $text |
86 | 87 | * @param int $flags |
87 | - * @return PPNode_Hash_Tree|bool |
|
88 | + * @return false|string |
|
88 | 89 | */ |
89 | 90 | protected function cacheGetTree( $text, $flags ) { |
90 | 91 | $config = RequestContext::getMain()->getConfig(); |
@@ -128,7 +129,7 @@ discard block |
||
128 | 129 | * Create a new custom frame for programmatic use of parameter replacement |
129 | 130 | * as used in some extensions. |
130 | 131 | * |
131 | - * @param array $args |
|
132 | + * @param boolean $args |
|
132 | 133 | * |
133 | 134 | * @return PPFrame |
134 | 135 | */ |
@@ -182,7 +183,7 @@ discard block |
||
182 | 183 | |
183 | 184 | /** |
184 | 185 | * Expand a document tree node, caching the result on its parent with the given key |
185 | - * @param string|int $key |
|
186 | + * @param string $key |
|
186 | 187 | * @param string|PPNode $root |
187 | 188 | * @param int $flags |
188 | 189 | * @return string |
@@ -201,7 +202,6 @@ discard block |
||
201 | 202 | * Implode with flags for expand() |
202 | 203 | * @param string $sep |
203 | 204 | * @param int $flags |
204 | - * @param string|PPNode $args,... |
|
205 | 205 | * @return string |
206 | 206 | */ |
207 | 207 | public function implodeWithFlags( $sep, $flags /*, ... */ ); |
@@ -209,7 +209,6 @@ discard block |
||
209 | 209 | /** |
210 | 210 | * Implode with no flags specified |
211 | 211 | * @param string $sep |
212 | - * @param string|PPNode $args,... |
|
213 | 212 | * @return string |
214 | 213 | */ |
215 | 214 | public function implode( $sep /*, ... */ ); |
@@ -218,7 +217,6 @@ discard block |
||
218 | 217 | * Makes an object that, when expand()ed, will be the same as one obtained |
219 | 218 | * with implode() |
220 | 219 | * @param string $sep |
221 | - * @param string|PPNode $args,... |
|
222 | 220 | * @return PPNode |
223 | 221 | */ |
224 | 222 | public function virtualImplode( $sep /*, ... */ ); |
@@ -228,7 +226,6 @@ discard block |
||
228 | 226 | * @param string $start |
229 | 227 | * @param string $sep |
230 | 228 | * @param string $end |
231 | - * @param string|PPNode $args,... |
|
232 | 229 | * @return PPNode |
233 | 230 | */ |
234 | 231 | public function virtualBracketedImplode( $start, $sep, $end /*, ... */ ); |
@@ -260,7 +257,7 @@ discard block |
||
260 | 257 | |
261 | 258 | /** |
262 | 259 | * Get an argument to this frame by name |
263 | - * @param int|string $name |
|
260 | + * @param string $name |
|
264 | 261 | * @return string|bool |
265 | 262 | */ |
266 | 263 | public function getArgument( $name ); |
@@ -289,6 +286,7 @@ discard block |
||
289 | 286 | * to respect it, and it may be removed in the future. |
290 | 287 | * |
291 | 288 | * @param bool $flag |
289 | + * @return void |
|
292 | 290 | */ |
293 | 291 | public function setVolatile( $flag = true ); |
294 | 292 | |
@@ -325,6 +323,7 @@ discard block |
||
325 | 323 | * |
326 | 324 | * @see self::getTTL() |
327 | 325 | * @param int $ttl |
326 | + * @return void |
|
328 | 327 | */ |
329 | 328 | public function setTTL( $ttl ); |
330 | 329 |
@@ -1296,7 +1296,6 @@ discard block |
||
1296 | 1296 | /** |
1297 | 1297 | * @param string $sep |
1298 | 1298 | * @param int $flags |
1299 | - * @param string|PPNode_DOM|DOMDocument $args,... |
|
1300 | 1299 | * @return string |
1301 | 1300 | */ |
1302 | 1301 | public function implodeWithFlags( $sep, $flags /*, ... */ ) { |
@@ -1328,7 +1327,6 @@ discard block |
||
1328 | 1327 | * This previously called implodeWithFlags but has now been inlined to reduce stack depth |
1329 | 1328 | * |
1330 | 1329 | * @param string $sep |
1331 | - * @param string|PPNode_DOM|DOMDocument $args,... |
|
1332 | 1330 | * @return string |
1333 | 1331 | */ |
1334 | 1332 | public function implode( $sep /*, ... */ ) { |
@@ -1360,7 +1358,6 @@ discard block |
||
1360 | 1358 | * with implode() |
1361 | 1359 | * |
1362 | 1360 | * @param string $sep |
1363 | - * @param string|PPNode_DOM|DOMDocument $args,... |
|
1364 | 1361 | * @return array |
1365 | 1362 | */ |
1366 | 1363 | public function virtualImplode( $sep /*, ... */ ) { |
@@ -1392,7 +1389,6 @@ discard block |
||
1392 | 1389 | * @param string $start |
1393 | 1390 | * @param string $sep |
1394 | 1391 | * @param string $end |
1395 | - * @param string|PPNode_DOM|DOMDocument $args,... |
|
1396 | 1392 | * @return array |
1397 | 1393 | */ |
1398 | 1394 | public function virtualBracketedImplode( $start, $sep, $end /*, ... */ ) { |
@@ -1530,7 +1526,7 @@ discard block |
||
1530 | 1526 | /** |
1531 | 1527 | * Get the TTL |
1532 | 1528 | * |
1533 | - * @return int|null |
|
1529 | + * @return integer |
|
1534 | 1530 | */ |
1535 | 1531 | public function getTTL() { |
1536 | 1532 | return $this->ttl; |
@@ -1555,7 +1551,7 @@ discard block |
||
1555 | 1551 | |
1556 | 1552 | /** |
1557 | 1553 | * @param Preprocessor $preprocessor |
1558 | - * @param bool|PPFrame_DOM $parent |
|
1554 | + * @param PPFrame_DOM $parent |
|
1559 | 1555 | * @param array $numberedArgs |
1560 | 1556 | * @param array $namedArgs |
1561 | 1557 | * @param bool|Title $title |
@@ -1726,6 +1722,9 @@ discard block |
||
1726 | 1722 | |
1727 | 1723 | public $args; |
1728 | 1724 | |
1725 | + /** |
|
1726 | + * @param Preprocessor_DOM $preprocessor |
|
1727 | + */ |
|
1729 | 1728 | public function __construct( $preprocessor, $args ) { |
1730 | 1729 | parent::__construct( $preprocessor ); |
1731 | 1730 | $this->args = $args; |
@@ -1833,7 +1832,7 @@ discard block |
||
1833 | 1832 | /** |
1834 | 1833 | * @param string $type |
1835 | 1834 | * |
1836 | - * @return bool|PPNode_DOM |
|
1835 | + * @return PPNode_DOM |
|
1837 | 1836 | */ |
1838 | 1837 | public function getChildrenOfType( $type ) { |
1839 | 1838 | return new self( $this->getXPath()->query( $type, $this->node ) ); |
@@ -654,7 +654,7 @@ discard block |
||
654 | 654 | * |
655 | 655 | * @param IContextSource $context Context to use, anything else will be ignored. |
656 | 656 | * @param int $old Revision ID we want to show and diff with. |
657 | - * @param int|string $new Either a revision ID or one of the strings 'cur', 'prev' or 'next'. |
|
657 | + * @param integer $new Either a revision ID or one of the strings 'cur', 'prev' or 'next'. |
|
658 | 658 | * @param int $rcid FIXME: Deprecated, no longer used. Defaults to 0. |
659 | 659 | * @param bool $refreshCache If set, refreshes the diff cache. Defaults to false. |
660 | 660 | * @param bool $unhide If set, allow viewing deleted revs. Defaults to false. |
@@ -792,7 +792,7 @@ discard block |
||
792 | 792 | * @param Content $myContent One of the page's conflicting contents. |
793 | 793 | * @param Content $yourContent One of the page's conflicting contents. |
794 | 794 | * |
795 | - * @return Content|bool Always false. |
|
795 | + * @return boolean Always false. |
|
796 | 796 | */ |
797 | 797 | public function merge3( Content $oldContent, Content $myContent, Content $yourContent ) { |
798 | 798 | return false; |
@@ -884,7 +884,7 @@ discard block |
||
884 | 884 | * @param Title $title The page's title |
885 | 885 | * @param bool &$hasHistory Whether the page has a history |
886 | 886 | * |
887 | - * @return mixed String containing deletion reason or empty string, or |
|
887 | + * @return false|string String containing deletion reason or empty string, or |
|
888 | 888 | * boolean false if no revision occurred |
889 | 889 | * |
890 | 890 | * @todo &$hasHistory is extremely ugly, it's here because |
@@ -53,7 +53,6 @@ discard block |
||
53 | 53 | * This function creates a 'increment' StatsdData object. |
54 | 54 | * |
55 | 55 | * @param string|array $key The metric(s) to increment. |
56 | - * @param float|1 $sampleRate The rate (0-1) for sampling. |
|
57 | 56 | * |
58 | 57 | * @return array |
59 | 58 | **/ |
@@ -66,7 +65,6 @@ discard block |
||
66 | 65 | * |
67 | 66 | * |
68 | 67 | * @param string|array $key The metric(s) to decrement. |
69 | - * @param float|1 $sampleRate The rate (0-1) for sampling. |
|
70 | 68 | * |
71 | 69 | * @return mixed |
72 | 70 | **/ |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * @since 1.16.3 |
44 | 44 | * @throws MWException |
45 | 45 | * @param string $collationName |
46 | - * @return Collation |
|
46 | + * @return string |
|
47 | 47 | */ |
48 | 48 | public static function factory( $collationName ) { |
49 | 49 | switch ( $collationName ) { |
@@ -167,6 +167,9 @@ discard block |
||
167 | 167 | */ |
168 | 168 | const RECORD_LENGTH = 14; |
169 | 169 | |
170 | + /** |
|
171 | + * @param string $locale |
|
172 | + */ |
|
170 | 173 | public function __construct( $locale ) { |
171 | 174 | if ( !extension_loaded( 'intl' ) ) { |
172 | 175 | throw new MWException( 'An ICU collation was requested, ' . |
@@ -388,6 +391,7 @@ discard block |
||
388 | 391 | |
389 | 392 | /** |
390 | 393 | * @since 1.16.3 |
394 | + * @param integer $index |
|
391 | 395 | */ |
392 | 396 | public function getLetterByIndex( $index ) { |
393 | 397 | if ( $this->firstLetterData === null ) { |
@@ -449,7 +453,7 @@ discard block |
||
449 | 453 | * currently in use, or false when it can't be determined. |
450 | 454 | * |
451 | 455 | * @since 1.21 |
452 | - * @return string|bool |
|
456 | + * @return false|string |
|
453 | 457 | */ |
454 | 458 | static function getUnicodeVersionForICU() { |
455 | 459 | $icuVersion = IcuCollation::getICUVersion(); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * instead. |
40 | 40 | * |
41 | 41 | * @param null $sitesTable IGNORED |
42 | - * @param null $cache IGNORED |
|
42 | + * @param null|BagOStuff $cache IGNORED |
|
43 | 43 | * |
44 | 44 | * @return SiteStore |
45 | 45 | */ |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | * one is set. |
431 | 431 | * |
432 | 432 | * @since 1.25 |
433 | - * @return bool|string |
|
433 | + * @return boolean |
|
434 | 434 | */ |
435 | 435 | public function getCanonicalUrl() { |
436 | 436 | return $this->mCanonicalUrl; |
@@ -996,7 +996,7 @@ discard block |
||
996 | 996 | /** |
997 | 997 | * Replace the subtitle with $str |
998 | 998 | * |
999 | - * @param string|Message $str New value of the subtitle. String should be safe HTML. |
|
999 | + * @param string $str New value of the subtitle. String should be safe HTML. |
|
1000 | 1000 | */ |
1001 | 1001 | public function setSubtitle( $str ) { |
1002 | 1002 | $this->clearSubtitle(); |
@@ -1610,7 +1610,7 @@ discard block |
||
1610 | 1610 | * Get the timestamp of displayed revision. |
1611 | 1611 | * This will be null if not filled by setRevisionTimestamp(). |
1612 | 1612 | * |
1613 | - * @return string|null |
|
1613 | + * @return string |
|
1614 | 1614 | */ |
1615 | 1615 | public function getRevisionTimestamp() { |
1616 | 1616 | return $this->mRevisionTimestamp; |
@@ -1619,7 +1619,7 @@ discard block |
||
1619 | 1619 | /** |
1620 | 1620 | * Set the displayed file version |
1621 | 1621 | * |
1622 | - * @param File|bool $file |
|
1622 | + * @param File $file |
|
1623 | 1623 | * @return mixed Previous value |
1624 | 1624 | */ |
1625 | 1625 | public function setFileVersion( $file ) { |
@@ -1965,7 +1965,7 @@ discard block |
||
1965 | 1965 | /** |
1966 | 1966 | * Get the list of cookies that will influence on the cache |
1967 | 1967 | * |
1968 | - * @return array |
|
1968 | + * @return string[] |
|
1969 | 1969 | */ |
1970 | 1970 | function getCacheVaryCookies() { |
1971 | 1971 | static $cookies; |
@@ -2342,7 +2342,7 @@ discard block |
||
2342 | 2342 | * indexing, clear the current text and redirect, set the page's title |
2343 | 2343 | * and optionally an custom HTML title (content of the "<title>" tag). |
2344 | 2344 | * |
2345 | - * @param string|Message $pageTitle Will be passed directly to setPageTitle() |
|
2345 | + * @param Message $pageTitle Will be passed directly to setPageTitle() |
|
2346 | 2346 | * @param string|Message $htmlTitle Will be passed directly to setHTMLTitle(); |
2347 | 2347 | * optional, if not passed the "<title>" attribute will be |
2348 | 2348 | * based on $pageTitle |
@@ -2368,8 +2368,8 @@ discard block |
||
2368 | 2368 | * showErrorPage( 'titlemsg', $messageObject ); |
2369 | 2369 | * showErrorPage( $titleMessageObject, $messageObject ); |
2370 | 2370 | * |
2371 | - * @param string|Message $title Message key (string) for page title, or a Message object |
|
2372 | - * @param string|Message $msg Message key (string) for page text, or a Message object |
|
2371 | + * @param string $title Message key (string) for page title, or a Message object |
|
2372 | + * @param string $msg Message key (string) for page text, or a Message object |
|
2373 | 2373 | * @param array $params Message parameters; ignored if $msg is a Message object |
2374 | 2374 | */ |
2375 | 2375 | public function showErrorPage( $title, $msg, $params = [] ) { |
@@ -2565,6 +2565,9 @@ discard block |
||
2565 | 2565 | } |
2566 | 2566 | } |
2567 | 2567 | |
2568 | + /** |
|
2569 | + * @param string $message |
|
2570 | + */ |
|
2568 | 2571 | public function showFatalError( $message ) { |
2569 | 2572 | $this->prepareErrorPage( $this->msg( 'internalerror' ) ); |
2570 | 2573 | |
@@ -2583,6 +2586,9 @@ discard block |
||
2583 | 2586 | $this->showFatalError( $this->msg( 'filerenameerror', $old, $new )->text() ); |
2584 | 2587 | } |
2585 | 2588 | |
2589 | + /** |
|
2590 | + * @param string $name |
|
2591 | + */ |
|
2586 | 2592 | public function showFileDeleteError( $name ) { |
2587 | 2593 | $this->showFatalError( $this->msg( 'filedeleteerror', $name )->text() ); |
2588 | 2594 | } |
@@ -2609,7 +2615,7 @@ discard block |
||
2609 | 2615 | * Add a "return to" link pointing to a specified title, |
2610 | 2616 | * or the title indicated in the request, or else the main page |
2611 | 2617 | * |
2612 | - * @param mixed $unused |
|
2618 | + * @param null|boolean $unused |
|
2613 | 2619 | * @param Title|string $returnto Title or String to return to |
2614 | 2620 | * @param string $returntoquery Query string for the return to link |
2615 | 2621 | */ |
@@ -3856,7 +3862,7 @@ discard block |
||
3856 | 3862 | * Caller is responsible for ensuring the file exists. Emits a PHP warning otherwise. |
3857 | 3863 | * |
3858 | 3864 | * @since 1.27 |
3859 | - * @param string $remotePath URL path prefix that points to $localPath |
|
3865 | + * @param string $remotePathPrefix URL path prefix that points to $localPath |
|
3860 | 3866 | * @param string $localPath File directory exposed at $remotePath |
3861 | 3867 | * @param string $file Path to target file relative to $localPath |
3862 | 3868 | * @return string URL |