@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | * |
470 | 470 | * @since 1.25 |
471 | 471 | * @param array &$arr To add $value to |
472 | - * @param string|int $name Index of $arr to add $value at. |
|
472 | + * @param string $name Index of $arr to add $value at. |
|
473 | 473 | * @param mixed $value |
474 | 474 | * @param int $flags Zero or more OR-ed flags like OVERRIDE | ADD_ON_TOP. |
475 | 475 | */ |
@@ -486,10 +486,10 @@ discard block |
||
486 | 486 | * |
487 | 487 | * @since 1.25 |
488 | 488 | * @param array|string|null $path See ApiResult::addValue() |
489 | - * @param string|int $name See ApiResult::setValue() |
|
489 | + * @param string $name See ApiResult::setValue() |
|
490 | 490 | * @param mixed $value |
491 | 491 | * @param int $flags Zero or more OR-ed flags like OVERRIDE | ADD_ON_TOP. |
492 | - * @return bool True if $value fits in the result, false if not |
|
492 | + * @return boolean|null True if $value fits in the result, false if not |
|
493 | 493 | */ |
494 | 494 | public function addContentValue( $path, $name, $value, $flags = 0 ) { |
495 | 495 | if ( $name === null ) { |
@@ -573,7 +573,7 @@ discard block |
||
573 | 573 | * subelements rather than attributes. |
574 | 574 | * @since 1.25 |
575 | 575 | * @param array|string|null $path See ApiResult::addValue() |
576 | - * @param array|string|int $names The element name(s) to be output as subelements |
|
576 | + * @param string $names The element name(s) to be output as subelements |
|
577 | 577 | */ |
578 | 578 | public function addSubelementsList( $path, $names ) { |
579 | 579 | $arr = &$this->path( $path ); |
@@ -128,7 +128,7 @@ |
||
128 | 128 | * @param WikiPage $page |
129 | 129 | * @param Content $content |
130 | 130 | * @param User $user |
131 | - * @return integer ApiStashEdit::ERROR_* constant |
|
131 | + * @return string ApiStashEdit::ERROR_* constant |
|
132 | 132 | * @since 1.25 |
133 | 133 | */ |
134 | 134 | public static function parseAndStash( WikiPage $page, Content $content, User $user ) { |
@@ -73,6 +73,9 @@ |
||
73 | 73 | return (bool)$result; |
74 | 74 | } |
75 | 75 | |
76 | + /** |
|
77 | + * @param string $type |
|
78 | + */ |
|
76 | 79 | protected function processIndividual( $type, $params, $id ) { |
77 | 80 | $idResult = array( $type => $id ); |
78 | 81 |
@@ -323,6 +323,10 @@ |
||
323 | 323 | } |
324 | 324 | |
325 | 325 | class AuthPluginUser { |
326 | + |
|
327 | + /** |
|
328 | + * @param User $user |
|
329 | + */ |
|
326 | 330 | function __construct( $user ) { |
327 | 331 | # Override this! |
328 | 332 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | * failures after this class is deserialized from cache with dead DB |
113 | 113 | * connection. |
114 | 114 | * |
115 | - * @return array |
|
115 | + * @return string[] |
|
116 | 116 | */ |
117 | 117 | function __sleep() { |
118 | 118 | return array( 'partitionCache', 'fullResultCache', 'title' ); |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | /** |
487 | 487 | * Get a Title iterator for cascade-protected template/file use backlinks |
488 | 488 | * |
489 | - * @return TitleArray |
|
489 | + * @return TitleArrayFromResult|null |
|
490 | 490 | * @since 1.25 |
491 | 491 | */ |
492 | 492 | public function getCascadeProtectedLinks() { |
@@ -33,6 +33,7 @@ discard block |
||
33 | 33 | * |
34 | 34 | * @since 1.20 |
35 | 35 | * @param bool $cacheEnabled |
36 | + * @return void |
|
36 | 37 | */ |
37 | 38 | function setCacheEnabled( $cacheEnabled ); |
38 | 39 | |
@@ -44,6 +45,7 @@ discard block |
||
44 | 45 | * |
45 | 46 | * @param int|null $cacheExpiry Sets the cache expiry, either ttl in seconds or unix timestamp. |
46 | 47 | * @param bool|null $cacheEnabled Sets if the cache should be enabled or not. |
48 | + * @return void |
|
47 | 49 | */ |
48 | 50 | function startCache( $cacheExpiry = null, $cacheEnabled = null ); |
49 | 51 | |
@@ -68,6 +70,7 @@ discard block |
||
68 | 70 | * Should be called after the last time anything is added via addCachedHTML. |
69 | 71 | * |
70 | 72 | * @since 1.20 |
73 | + * @return void |
|
71 | 74 | */ |
72 | 75 | function saveCache(); |
73 | 76 | |
@@ -78,6 +81,7 @@ discard block |
||
78 | 81 | * @since 1.20 |
79 | 82 | * |
80 | 83 | * @param int $cacheExpiry |
84 | + * @return void |
|
81 | 85 | */ |
82 | 86 | function setExpiry( $cacheExpiry ); |
83 | 87 | } |
@@ -259,7 +263,7 @@ discard block |
||
259 | 263 | * @param array|mixed $args |
260 | 264 | * @param string|null $key |
261 | 265 | * |
262 | - * @return mixed |
|
266 | + * @return string |
|
263 | 267 | */ |
264 | 268 | public function getCachedValue( $computeFunction, $args = array(), $key = null ) { |
265 | 269 | $this->initCaching(); |
@@ -98,7 +98,7 @@ |
||
98 | 98 | |
99 | 99 | /** |
100 | 100 | * Get the last-modified timestamp of the cache file |
101 | - * @return string|bool TS_MW timestamp |
|
101 | + * @return string|false TS_MW timestamp |
|
102 | 102 | */ |
103 | 103 | public function cacheTimestamp() { |
104 | 104 | $timestamp = filemtime( $this->cachePath() ); |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | |
360 | 360 | /** |
361 | 361 | * @param string $code |
362 | - * @param array $where List of wfDebug() comments |
|
362 | + * @param string[] $where List of wfDebug() comments |
|
363 | 363 | * @param integer $mode Use MessageCache::FOR_UPDATE to use DB_MASTER |
364 | 364 | * @return bool|string True on success or one of ("cantacquire", "disabled") |
365 | 365 | */ |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | * Updates cache as necessary when message page is changed |
514 | 514 | * |
515 | 515 | * @param string|bool $title Name of the page changed (false if deleted) |
516 | - * @param mixed $text New contents of the page. |
|
516 | + * @param string|boolean $text New contents of the page. |
|
517 | 517 | */ |
518 | 518 | public function replace( $title, $text ) { |
519 | 519 | global $wgMaxMsgCacheEntrySize, $wgContLang, $wgLanguageCode; |
@@ -720,7 +720,7 @@ discard block |
||
720 | 720 | * @param bool $isFullKey Specifies whether $key is a two part key "msg/lang". |
721 | 721 | * |
722 | 722 | * @throws MWException When given an invalid key |
723 | - * @return string|bool False if the message doesn't exist, otherwise the |
|
723 | + * @return false|string False if the message doesn't exist, otherwise the |
|
724 | 724 | * message (which can be empty) |
725 | 725 | */ |
726 | 726 | function get( $key, $useDB = true, $langcode = true, $isFullKey = false ) { |
@@ -799,7 +799,7 @@ discard block |
||
799 | 799 | * the site language. |
800 | 800 | * |
801 | 801 | * @see MessageCache::get |
802 | - * @param Language|StubObject $lang Preferred language |
|
802 | + * @param Language $lang Preferred language |
|
803 | 803 | * @param string $lckey Lowercase key for the message (as for localisation cache) |
804 | 804 | * @param bool $useDB Whether to include messages from the wiki database |
805 | 805 | * @return string|bool The message, or false if not found |
@@ -1099,7 +1099,7 @@ discard block |
||
1099 | 1099 | |
1100 | 1100 | /** |
1101 | 1101 | * @param string $key |
1102 | - * @return array |
|
1102 | + * @return string[] |
|
1103 | 1103 | */ |
1104 | 1104 | public function figureMessage( $key ) { |
1105 | 1105 | global $wgLanguageCode; |
@@ -188,6 +188,10 @@ |
||
188 | 188 | $this->getSubcategorySortChar( $cat->getTitle(), $sortkey ); |
189 | 189 | } |
190 | 190 | |
191 | + /** |
|
192 | + * @param string $type |
|
193 | + * @param string $html |
|
194 | + */ |
|
191 | 195 | function generateLink( $type, Title $title, $isRedirect, $html = null ) { |
192 | 196 | $link = null; |
193 | 197 | Hooks::run( 'CategoryViewer::generateLink', array( $type, $title, $html, &$link ) ); |