@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * If the configuration parameter is optional, add a '&' to the beginning of the value |
| 86 | 86 | * If the configuration parameter is hidden, add a '#' to the beginning of the value |
| 87 | 87 | * |
| 88 | - * @return array |
|
| 88 | + * @return string |
|
| 89 | 89 | */ |
| 90 | 90 | public static function getBackends() { |
| 91 | 91 | $sortFunc = function ($a, $b) { |
@@ -484,6 +484,7 @@ discard block |
||
| 484 | 484 | * |
| 485 | 485 | * @param string $class backend class name |
| 486 | 486 | * @param array $options backend configuration options |
| 487 | + * @param boolean $isPersonal |
|
| 487 | 488 | * @return int see self::STATUS_* |
| 488 | 489 | */ |
| 489 | 490 | public static function getBackendStatus($class, $options, $isPersonal) { |
@@ -789,7 +790,7 @@ discard block |
||
| 789 | 790 | * @param OC_L10N $l |
| 790 | 791 | * @param string $module |
| 791 | 792 | * @param string $backend |
| 792 | - * @return string |
|
| 793 | + * @return OC_L10N_String |
|
| 793 | 794 | */ |
| 794 | 795 | private static function getSingleDependencyMessage(OC_L10N $l, $module, $backend) { |
| 795 | 796 | switch (strtolower($module)) { |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | /** |
| 177 | - * @param string $option |
|
| 177 | + * @param string $key |
|
| 178 | 178 | * @return mixed |
| 179 | 179 | */ |
| 180 | 180 | public function getBackendOption($key) { |
@@ -185,8 +185,8 @@ discard block |
||
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | /** |
| 188 | - * @param string $option |
|
| 189 | 188 | * @param mixed $value |
| 189 | + * @param string $key |
|
| 190 | 190 | */ |
| 191 | 191 | public function setBackendOption($key, $value) { |
| 192 | 192 | $this->backendOptions[$key] = $value; |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | |
| 22 | 22 | namespace OCA\Files_Sharing\Controllers; |
| 23 | 23 | |
| 24 | -use OCP\AppFramework\Http\DataResponse; |
|
| 25 | 24 | use OCP\AppFramework\Http\JSONResponse; |
| 26 | 25 | use OCP\Http\Client\IClientService; |
| 27 | 26 | use OCP\IRequest; |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | * @param string $uniqueFilename new file name to restore the file without overwriting existing files |
| 408 | 408 | * @param string $location location if file |
| 409 | 409 | * @param int $timestamp deletion time |
| 410 | - * @return bool |
|
| 410 | + * @return false|null |
|
| 411 | 411 | */ |
| 412 | 412 | private static function restoreVersions(\OC\Files\View $view, $file, $filename, $uniqueFilename, $location, $timestamp) { |
| 413 | 413 | |
@@ -497,9 +497,10 @@ discard block |
||
| 497 | 497 | |
| 498 | 498 | /** |
| 499 | 499 | * @param \OC\Files\View $view |
| 500 | - * @param $file |
|
| 501 | - * @param $filename |
|
| 502 | - * @param $timestamp |
|
| 500 | + * @param string $file |
|
| 501 | + * @param string $filename |
|
| 502 | + * @param integer|null $timestamp |
|
| 503 | + * @param string $user |
|
| 503 | 504 | * @return int |
| 504 | 505 | */ |
| 505 | 506 | private static function deleteVersions(\OC\Files\View $view, $file, $filename, $timestamp, $user) { |
@@ -686,7 +687,7 @@ discard block |
||
| 686 | 687 | * @param string $user |
| 687 | 688 | * @param int $limit files older then limit should be deleted |
| 688 | 689 | * @param int $retention_obligation max age of file in days |
| 689 | - * @return array size of deleted files and number of deleted files |
|
| 690 | + * @return integer[] size of deleted files and number of deleted files |
|
| 690 | 691 | */ |
| 691 | 692 | protected static function deleteExpiredFiles($files, $user, $limit, $retention_obligation) { |
| 692 | 693 | $size = 0; |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | /** |
| 156 | 156 | * merge the returned result objects into one response |
| 157 | 157 | * @param array $responses |
| 158 | - * @return array|\OC_OCS_Result |
|
| 158 | + * @return OC_OCS_Result |
|
| 159 | 159 | */ |
| 160 | 160 | public static function mergeResponses($responses) { |
| 161 | 161 | // Sort into shipped and third-party |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | |
| 294 | 294 | /** |
| 295 | 295 | * http basic auth |
| 296 | - * @return string|false (username, or false on failure) |
|
| 296 | + * @return string (username, or false on failure) |
|
| 297 | 297 | */ |
| 298 | 298 | private static function loginUser() { |
| 299 | 299 | if(self::$isLoggedIn === true) { |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | /** |
| 89 | 89 | * List all installed apps |
| 90 | 90 | * |
| 91 | - * @return string[] |
|
| 91 | + * @return integer[] |
|
| 92 | 92 | */ |
| 93 | 93 | public function getInstalledApps() { |
| 94 | 94 | return array_keys($this->getInstalledAppsValues()); |
@@ -28,6 +28,9 @@ |
||
| 28 | 28 | |
| 29 | 29 | class CodeCheckVisitor extends NodeVisitorAbstract { |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param string[] $blackListedClassNames |
|
| 33 | + */ |
|
| 31 | 34 | public function __construct($blackListedClassNames) { |
| 32 | 35 | $this->blackListedClassNames = array_map('strtolower', $blackListedClassNames); |
| 33 | 36 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * This is being run in normal order before the controller is being |
| 69 | 69 | * called which allows several modifications and checks |
| 70 | 70 | * |
| 71 | - * @param Controller $controller the controller that is being called |
|
| 71 | + * @param CORSMiddlewareTest $controller the controller that is being called |
|
| 72 | 72 | * @param string $methodName the name of the method that will be called on |
| 73 | 73 | * the controller |
| 74 | 74 | * @since 6.0.0 |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | * This is being run after a successful controllermethod call and allows |
| 93 | 93 | * the manipulation of a Response object. The middleware is run in reverse order |
| 94 | 94 | * |
| 95 | - * @param Controller $controller the controller that is being called |
|
| 95 | + * @param CORSMiddlewareTest $controller the controller that is being called |
|
| 96 | 96 | * @param string $methodName the name of the method that will be called on |
| 97 | 97 | * the controller |
| 98 | 98 | * @param Response $response the generated response from the controller |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * @param Job|string $job |
|
| 51 | + * @param \Test\BackgroundJob\TestJob $job |
|
| 52 | 52 | * @param mixed $argument |
| 53 | 53 | */ |
| 54 | 54 | public function add($job, $argument = null) { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | - * @param Job|string $job |
|
| 71 | + * @param Job $job |
|
| 72 | 72 | * @param mixed $argument |
| 73 | 73 | */ |
| 74 | 74 | public function remove($job, $argument = null) { |