From: Sam Reed Date: Sun, 8 May 2011 21:47:01 +0000 (+0000) Subject: Whitespace fixes X-Git-Tag: 1.31.0-rc.0~30321 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=2730c42dd8c6ad5c786ea2275ff2c69470f4b953;p=lhc%2Fweb%2Fwiklou.git Whitespace fixes Addition/tweak of documentation --- diff --git a/includes/api/ApiFileRevert.php b/includes/api/ApiFileRevert.php index bd20c059cb..c89d7abd4d 100644 --- a/includes/api/ApiFileRevert.php +++ b/includes/api/ApiFileRevert.php @@ -86,8 +86,6 @@ class ApiFileRevert extends ApiBase { if ( $permissionErrors ) { $this->dieUsageMsg( $permissionErrors[0] ); } - - } /** diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index c70fb377aa..1f8b383f66 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -85,7 +85,7 @@ class ApiParamInfo extends ApiBase { } /** - * @param $obj ApiBase + * @param $obj ApiBase * @return ApiResult */ function getClassInfo( $obj ) { diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 981bb87091..3c1d0e71a6 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -278,6 +278,8 @@ class ApiQuery extends ApiBase { * Update a cache mode string, applying the cache mode of a new module to it. * The cache mode may increase in the level of privacy, but public modules * added to private data do not decrease the level of privacy. + * + * @return string */ protected function mergeCacheMode( $cacheMode, $modCacheMode ) { if ( $modCacheMode === 'anon-public-user-private' ) { diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index 3812ba1dad..8d43479785 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -54,6 +54,8 @@ abstract class ApiQueryBase extends ApiBase { * * Public caching will only be allowed if *all* the modules that supply * data for a given request return a cache mode of public. + * + * @return string */ public function getCacheMode( $params ) { return 'private'; @@ -511,6 +513,9 @@ abstract class ApiQueryBase extends ApiBase { } } + /** + * @return array + */ public function getPossibleErrors() { return array_merge( parent::getPossibleErrors(), array( array( 'invalidtitle', 'title' ), diff --git a/includes/api/ApiResult.php b/includes/api/ApiResult.php index 48cd5b1218..5100973332 100644 --- a/includes/api/ApiResult.php +++ b/includes/api/ApiResult.php @@ -249,6 +249,12 @@ class ApiResult extends ApiBase { * Path is an indexed array, each element specifying the branch at which to add the new value * Setting $path to array('a','b','c') is equivalent to data['a']['b']['c'] = $value * If $name is empty, the $value is added as a next list element data[] = $value + * + * @param $path + * @param $name string + * @param $value mixed + * @param $overwrite bool + * * @return bool True if $value fits in the result, false if not */ public function addValue( $path, $name, $value, $overwrite = false ) { @@ -330,6 +336,8 @@ class ApiResult extends ApiBase { /** * Callback function for cleanUpUTF8() + * + * @param $s string */ private static function cleanUp_helper( &$s ) { if ( !is_string( $s ) ) {