Index: trunk/phase3/includes/api/ApiFileRevert.php |
— | — | @@ -86,8 +86,6 @@ |
87 | 87 | if ( $permissionErrors ) { |
88 | 88 | $this->dieUsageMsg( $permissionErrors[0] ); |
89 | 89 | } |
90 | | - |
91 | | - |
92 | 90 | } |
93 | 91 | |
94 | 92 | /** |
Index: trunk/phase3/includes/api/ApiQueryBase.php |
— | — | @@ -54,6 +54,8 @@ |
55 | 55 | * |
56 | 56 | * Public caching will only be allowed if *all* the modules that supply |
57 | 57 | * data for a given request return a cache mode of public. |
| 58 | + * |
| 59 | + * @return string |
58 | 60 | */ |
59 | 61 | public function getCacheMode( $params ) { |
60 | 62 | return 'private'; |
— | — | @@ -511,6 +513,9 @@ |
512 | 514 | } |
513 | 515 | } |
514 | 516 | |
| 517 | + /** |
| 518 | + * @return array |
| 519 | + */ |
515 | 520 | public function getPossibleErrors() { |
516 | 521 | return array_merge( parent::getPossibleErrors(), array( |
517 | 522 | array( 'invalidtitle', 'title' ), |
Index: trunk/phase3/includes/api/ApiResult.php |
— | — | @@ -249,6 +249,12 @@ |
250 | 250 | * Path is an indexed array, each element specifying the branch at which to add the new value |
251 | 251 | * Setting $path to array('a','b','c') is equivalent to data['a']['b']['c'] = $value |
252 | 252 | * If $name is empty, the $value is added as a next list element data[] = $value |
| 253 | + * |
| 254 | + * @param $path |
| 255 | + * @param $name string |
| 256 | + * @param $value mixed |
| 257 | + * @param $overwrite bool |
| 258 | + * |
253 | 259 | * @return bool True if $value fits in the result, false if not |
254 | 260 | */ |
255 | 261 | public function addValue( $path, $name, $value, $overwrite = false ) { |
— | — | @@ -330,6 +336,8 @@ |
331 | 337 | |
332 | 338 | /** |
333 | 339 | * Callback function for cleanUpUTF8() |
| 340 | + * |
| 341 | + * @param $s string |
334 | 342 | */ |
335 | 343 | private static function cleanUp_helper( &$s ) { |
336 | 344 | if ( !is_string( $s ) ) { |
Index: trunk/phase3/includes/api/ApiQuery.php |
— | — | @@ -278,6 +278,8 @@ |
279 | 279 | * Update a cache mode string, applying the cache mode of a new module to it. |
280 | 280 | * The cache mode may increase in the level of privacy, but public modules |
281 | 281 | * added to private data do not decrease the level of privacy. |
| 282 | + * |
| 283 | + * @return string |
282 | 284 | */ |
283 | 285 | protected function mergeCacheMode( $cacheMode, $modCacheMode ) { |
284 | 286 | if ( $modCacheMode === 'anon-public-user-private' ) { |
Index: trunk/phase3/includes/api/ApiParamInfo.php |
— | — | @@ -85,7 +85,7 @@ |
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
89 | | - * @param $obj ApiBase |
| 89 | + * @param $obj ApiBase |
90 | 90 | * @return ApiResult |
91 | 91 | */ |
92 | 92 | function getClassInfo( $obj ) { |