@@ -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; |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * Factory function. |
| 127 | 127 | * |
| 128 | 128 | * @param Title $title Title for the category page |
| 129 | - * @return Category|bool On a totally invalid name |
|
| 129 | + * @return Category On a totally invalid name |
|
| 130 | 130 | */ |
| 131 | 131 | public static function newFromTitle( $title ) { |
| 132 | 132 | $cat = new self(); |
@@ -196,42 +196,42 @@ discard block |
||
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | - * @return mixed DB key name, or false on failure |
|
| 199 | + * @return boolean DB key name, or false on failure |
|
| 200 | 200 | */ |
| 201 | 201 | public function getName() { |
| 202 | 202 | return $this->getX( 'mName' ); |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | /** |
| 206 | - * @return mixed Category ID, or false on failure |
|
| 206 | + * @return boolean Category ID, or false on failure |
|
| 207 | 207 | */ |
| 208 | 208 | public function getID() { |
| 209 | 209 | return $this->getX( 'mID' ); |
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | /** |
| 213 | - * @return mixed Total number of member pages, or false on failure |
|
| 213 | + * @return boolean Total number of member pages, or false on failure |
|
| 214 | 214 | */ |
| 215 | 215 | public function getPageCount() { |
| 216 | 216 | return $this->getX( 'mPages' ); |
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | /** |
| 220 | - * @return mixed Number of subcategories, or false on failure |
|
| 220 | + * @return boolean Number of subcategories, or false on failure |
|
| 221 | 221 | */ |
| 222 | 222 | public function getSubcatCount() { |
| 223 | 223 | return $this->getX( 'mSubcats' ); |
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | /** |
| 227 | - * @return mixed Number of member files, or false on failure |
|
| 227 | + * @return boolean Number of member files, or false on failure |
|
| 228 | 228 | */ |
| 229 | 229 | public function getFileCount() { |
| 230 | 230 | return $this->getX( 'mFiles' ); |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | 233 | /** |
| 234 | - * @return Title|bool Title for this category, or false on failure. |
|
| 234 | + * @return Title Title for this category, or false on failure. |
|
| 235 | 235 | */ |
| 236 | 236 | public function getTitle() { |
| 237 | 237 | if ( $this->mTitle ) { |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | * category sort key $offset. |
| 252 | 252 | * @param int $limit |
| 253 | 253 | * @param string $offset |
| 254 | - * @return TitleArray TitleArray object for category members. |
|
| 254 | + * @return TitleArrayFromResult|null TitleArray object for category members. |
|
| 255 | 255 | */ |
| 256 | 256 | public function getMembers( $limit = false, $offset = '' ) { |
| 257 | 257 | |
@@ -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 ) ); |
@@ -207,7 +207,7 @@ |
||
| 207 | 207 | * False will be returned if the user name specified in the |
| 208 | 208 | * 'autochange-username' message is invalid. |
| 209 | 209 | * |
| 210 | - * @return User|bool |
|
| 210 | + * @return null|User |
|
| 211 | 211 | */ |
| 212 | 212 | private function getUser() { |
| 213 | 213 | if ( $this->revision ) { |
@@ -447,7 +447,7 @@ |
||
| 447 | 447 | /** |
| 448 | 448 | * Generates amount of changes (linking to diff ) & link to history. |
| 449 | 449 | * |
| 450 | - * @param array $block |
|
| 450 | + * @param RCCacheEntry[] $block |
|
| 451 | 451 | * @param array $queryParams |
| 452 | 452 | * @param bool $allLogs |
| 453 | 453 | * @param bool $isnew |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * @param bool $watched (default false) |
| 30 | 30 | * @param int $linenumber (default null) |
| 31 | 31 | * |
| 32 | - * @return string|bool |
|
| 32 | + * @return false|string |
|
| 33 | 33 | */ |
| 34 | 34 | public function recentChangesLine( &$rc, $watched = false, $linenumber = null ) { |
| 35 | 35 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | * @since 1.24 |
| 120 | 120 | * @param string|array $type |
| 121 | 121 | * @throws MWException |
| 122 | - * @return int|array RC_TYPE |
|
| 122 | + * @return string RC_TYPE |
|
| 123 | 123 | */ |
| 124 | 124 | public static function parseToRCType( $type ) { |
| 125 | 125 | if ( is_array( $type ) ) { |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | * Find the first recent change matching some specific conditions |
| 173 | 173 | * |
| 174 | 174 | * @param array $conds Array of conditions |
| 175 | - * @param mixed $fname Override the method name in profiling/logs |
|
| 175 | + * @param string $fname Override the method name in profiling/logs |
|
| 176 | 176 | * @param int $dbType DB_* constant |
| 177 | 177 | * |
| 178 | 178 | * @return RecentChange|null |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | /** |
| 195 | 195 | * Return the list of recentchanges fields that should be selected to create |
| 196 | 196 | * a new recentchanges object. |
| 197 | - * @return array |
|
| 197 | + * @return string[] |
|
| 198 | 198 | */ |
| 199 | 199 | public static function selectFields() { |
| 200 | 200 | return array( |
@@ -919,6 +919,9 @@ discard block |
||
| 919 | 919 | return ChangesList::showCharacterDifference( $old, $new ); |
| 920 | 920 | } |
| 921 | 921 | |
| 922 | + /** |
|
| 923 | + * @param string $ip |
|
| 924 | + */ |
|
| 922 | 925 | private static function checkIPAddress( $ip ) { |
| 923 | 926 | global $wgRequest; |
| 924 | 927 | if ( $ip ) { |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * we consider the tag hidden, and return false. |
| 90 | 90 | * |
| 91 | 91 | * @param string $tag Tag |
| 92 | - * @return string|bool Tag description or false if tag is to be hidden. |
|
| 92 | + * @return string|false Tag description or false if tag is to be hidden. |
|
| 93 | 93 | * @since 1.25 Returns false if tag is to be hidden. |
| 94 | 94 | */ |
| 95 | 95 | public static function tagDescription( $tag ) { |
@@ -145,6 +145,9 @@ discard block |
||
| 145 | 145 | * Pass a variable whose value is null if the log_id is not relevant or unknown. |
| 146 | 146 | * @param string $params Params to put in the ct_params field of table |
| 147 | 147 | * 'change_tag' when adding tags |
| 148 | + * @param integer $rc_id |
|
| 149 | + * @param integer $rev_id |
|
| 150 | + * @param integer $log_id |
|
| 148 | 151 | * |
| 149 | 152 | * @throws MWException When $rc_id, $rev_id and $log_id are all null |
| 150 | 153 | * @return array Index 0 is an array of tags actually added, index 1 is an |