Index: trunk/phase3/includes/Categoryfinder.php |
— | — | @@ -86,9 +86,9 @@ |
87 | 87 | |
88 | 88 | /** |
89 | 89 | * This functions recurses through the parent representation, trying to match the conditions |
90 | | - * @param $id The article/category to check |
91 | | - * @param $conds The array of categories to match |
92 | | - * @param $path used to check for recursion loops |
| 90 | + * @param $id int The article/category to check |
| 91 | + * @param $conds array The array of categories to match |
| 92 | + * @param $path array used to check for recursion loops |
93 | 93 | * @return bool Does this match the conditions? |
94 | 94 | */ |
95 | 95 | function check( $id, &$conds, $path = array() ) { |
Index: trunk/phase3/includes/User.php |
— | — | @@ -3693,6 +3693,8 @@ |
3694 | 3694 | * |
3695 | 3695 | * @param $byEmail Boolean: account made by email? |
3696 | 3696 | * @param $reason String: user supplied reason |
| 3697 | + * |
| 3698 | + * @return true |
3697 | 3699 | */ |
3698 | 3700 | public function addNewUserLogEntry( $byEmail = false, $reason = '' ) { |
3699 | 3701 | global $wgUser, $wgContLang, $wgNewUserLog; |
— | — | @@ -3726,6 +3728,8 @@ |
3727 | 3729 | /** |
3728 | 3730 | * Add an autocreate newuser log entry for this user |
3729 | 3731 | * Used by things like CentralAuth and perhaps other authplugins. |
| 3732 | + * |
| 3733 | + * @return true |
3730 | 3734 | */ |
3731 | 3735 | public function addNewUserLogEntryAutoCreate() { |
3732 | 3736 | global $wgNewUserLog; |
Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -3305,7 +3305,7 @@ |
3306 | 3306 | * Generate a random 32-character hexadecimal token. |
3307 | 3307 | * @param $salt Mixed: some sort of salt, if necessary, to add to random |
3308 | 3308 | * characters before hashing. |
3309 | | - * @return Array |
| 3309 | + * @return string |
3310 | 3310 | * @codeCoverageIgnore |
3311 | 3311 | */ |
3312 | 3312 | function wfGenerateToken( $salt = '' ) { |
Index: trunk/phase3/includes/db/LoadBalancer.php |
— | — | @@ -27,8 +27,7 @@ |
28 | 28 | * masterWaitTimeout Replication lag wait timeout |
29 | 29 | * loadMonitor Name of a class used to fetch server lag and load. |
30 | 30 | */ |
31 | | - function __construct( $params ) |
32 | | - { |
| 31 | + function __construct( $params ) { |
33 | 32 | if ( !isset( $params['servers'] ) ) { |
34 | 33 | throw new MWException( __CLASS__.': missing servers parameter' ); |
35 | 34 | } |
Index: trunk/phase3/includes/db/LoadMonitor.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Perform pre-connection load ratio adjustment. |
25 | | - * @param $loads Array |
| 25 | + * @param $loads array |
26 | 26 | * @param $group String: the selected query group |
27 | 27 | * @param $wiki String |
28 | 28 | */ |
Index: trunk/phase3/includes/Sanitizer.php |
— | — | @@ -1282,7 +1282,7 @@ |
1283 | 1283 | * return the UTF-8 encoding of that character. Otherwise, returns |
1284 | 1284 | * pseudo-entity source (eg &foo;) |
1285 | 1285 | * |
1286 | | - * @param $name Strings |
| 1286 | + * @param $name String |
1287 | 1287 | * @return String |
1288 | 1288 | */ |
1289 | 1289 | static function decodeEntity( $name ) { |
Index: trunk/phase3/includes/media/Generic.php |
— | — | @@ -349,7 +349,7 @@ |
350 | 350 | * @param &$array Array An array containing elements for each type of visibility |
351 | 351 | * and each of those elements being an array of metadata items. This function adds |
352 | 352 | * a value to that array. |
353 | | - * @param $visibility String ('visible' or 'collapsed') if this value is hidden |
| 353 | + * @param $visibility string ('visible' or 'collapsed') if this value is hidden |
354 | 354 | * by default. |
355 | 355 | * @param $type String type of metadata tag (currently always 'exif') |
356 | 356 | * @param $id String the name of the metadata tag (like 'artist' for example). |
— | — | @@ -362,8 +362,6 @@ |
363 | 363 | * @param $param String value to pass to the message for the name of the field |
364 | 364 | * as $1. Currently this parameter doesn't seem to ever be used. |
365 | 365 | * |
366 | | - * @return Array $array but with the new metadata field added. |
367 | | - * |
368 | 366 | * Note, everything here is passed through the parser later on (!) |
369 | 367 | */ |
370 | 368 | protected static function addMeta( &$array, $visibility, $type, $id, $value, $param = false ) { |
Index: trunk/phase3/includes/AuthPlugin.php |
— | — | @@ -131,6 +131,8 @@ |
132 | 132 | * and use the same keys. 'Realname' 'Emailaddress' and 'Nickname' |
133 | 133 | * all reference this. |
134 | 134 | * |
| 135 | + * @param $prop string |
| 136 | + * |
135 | 137 | * @return Boolean |
136 | 138 | */ |
137 | 139 | public function allowPropChange( $prop = '' ) { |
— | — | @@ -254,6 +256,8 @@ |
255 | 257 | * Get an instance of a User object |
256 | 258 | * |
257 | 259 | * @param $user User |
| 260 | + * |
| 261 | + * @return AuthPluginUser |
258 | 262 | */ |
259 | 263 | public function getUserInstance( User &$user ) { |
260 | 264 | return new AuthPluginUser( $user ); |
Index: trunk/phase3/includes/LogPage.php |
— | — | @@ -514,7 +514,7 @@ |
515 | 515 | /** |
516 | 516 | * Translate a block log flag if possible |
517 | 517 | * |
518 | | - * @param $flag Flag to translate |
| 518 | + * @param $flag int Flag to translate |
519 | 519 | * @param $forContent Whether to localize the message depending of the user |
520 | 520 | * language |
521 | 521 | * @return String |