@@ -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 |
@@ -219,7 +219,7 @@ |
||
| 219 | 219 | * @param bool $recursive |
| 220 | 220 | * @param ParserOutput $parserOutput |
| 221 | 221 | * |
| 222 | - * @return DataUpdate[] |
|
| 222 | + * @return LinksUpdate[] |
|
| 223 | 223 | * |
| 224 | 224 | * @see Content::getSecondaryDataUpdates() |
| 225 | 225 | */ |
@@ -329,7 +329,6 @@ |
||
| 329 | 329 | * it would set only the original context, and not take |
| 330 | 330 | * into account any changes. |
| 331 | 331 | * |
| 332 | - * @param mixed $args,... Arguments to wfMessage |
|
| 333 | 332 | * @return Message |
| 334 | 333 | */ |
| 335 | 334 | public function msg() { |