@@ -37,7 +37,7 @@ |
||
37 | 37 | private $parameters = []; |
38 | 38 | |
39 | 39 | /** |
40 | - * @param object $object an object or classname |
|
40 | + * @param \OCP\AppFramework\Controller $object an object or classname |
|
41 | 41 | * @param string $method the method which we want to inspect |
42 | 42 | */ |
43 | 43 | public function reflect($object, $method){ |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | * @param IUser $user |
330 | 330 | * @param array $loginDetails |
331 | 331 | * @param bool $regenerateSessionId |
332 | - * @return true returns true if login successful or an exception otherwise |
|
332 | + * @return boolean returns true if login successful or an exception otherwise |
|
333 | 333 | * @throws LoginException |
334 | 334 | */ |
335 | 335 | public function completeLogin(IUser $user, array $loginDetails, $regenerateSessionId = true) { |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | * @param OC\Security\Bruteforce\Throttler $throttler |
378 | 378 | * @throws LoginException |
379 | 379 | * @throws PasswordLoginForbiddenException |
380 | - * @return boolean |
|
380 | + * @return boolean|null |
|
381 | 381 | */ |
382 | 382 | public function logClientIn($user, |
383 | 383 | $password, |
@@ -431,6 +431,9 @@ discard block |
||
431 | 431 | return $this->config->getSystemValue('token_auth_enforced', false); |
432 | 432 | } |
433 | 433 | |
434 | + /** |
|
435 | + * @param string $username |
|
436 | + */ |
|
434 | 437 | protected function isTwoFactorEnforced($username) { |
435 | 438 | Util::emitHook( |
436 | 439 | '\OCA\Files_Sharing\API\Server2Server', |
@@ -99,7 +99,7 @@ |
||
99 | 99 | * @param bool $isLoggedIn |
100 | 100 | * @param bool $isAdminUser |
101 | 101 | * @param ContentSecurityPolicyManager $contentSecurityPolicyManager |
102 | - * @param CSRFTokenManager $csrfTokenManager |
|
102 | + * @param CsrfTokenManager $csrfTokenManager |
|
103 | 103 | * @param ContentSecurityPolicyNonceManager $cspNonceManager |
104 | 104 | */ |
105 | 105 | public function __construct(IRequest $request, |
@@ -276,10 +276,10 @@ discard block |
||
276 | 276 | * publish activity if a file/folder was shared by mail |
277 | 277 | * |
278 | 278 | * @param $subject |
279 | - * @param $parameters |
|
280 | - * @param $affectedUser |
|
279 | + * @param string[] $parameters |
|
280 | + * @param string $affectedUser |
|
281 | 281 | * @param $fileId |
282 | - * @param $filePath |
|
282 | + * @param string $filePath |
|
283 | 283 | */ |
284 | 284 | protected function publishActivity($subject, $parameters, $affectedUser, $fileId, $filePath) { |
285 | 285 | $event = $this->activityManager->generateEvent(); |
@@ -557,6 +557,7 @@ discard block |
||
557 | 557 | * @param string $uidOwner |
558 | 558 | * @param int $permissions |
559 | 559 | * @param string $token |
560 | + * @param string $password |
|
560 | 561 | * @return int |
561 | 562 | */ |
562 | 563 | protected function addShareToDB($itemSource, $itemType, $shareWith, $sharedBy, $uidOwner, $permissions, $token, $password) { |
@@ -950,7 +951,7 @@ discard block |
||
950 | 951 | /** |
951 | 952 | * get database row of a give share |
952 | 953 | * |
953 | - * @param $id |
|
954 | + * @param integer $id |
|
954 | 955 | * @return array |
955 | 956 | * @throws ShareNotFound |
956 | 957 | */ |
@@ -320,7 +320,7 @@ |
||
320 | 320 | |
321 | 321 | /** |
322 | 322 | * @param IJob $job |
323 | - * @param $timeTaken |
|
323 | + * @param integer $timeTaken |
|
324 | 324 | */ |
325 | 325 | public function setExecutionTime(IJob $job, $timeTaken) { |
326 | 326 | $query = $this->connection->getQueryBuilder(); |
@@ -431,7 +431,7 @@ |
||
431 | 431 | } |
432 | 432 | |
433 | 433 | /** |
434 | - * @param array $disabledApps |
|
434 | + * @param string[] $disabledApps |
|
435 | 435 | * @throws \Exception |
436 | 436 | */ |
437 | 437 | private function upgradeAppStoreApps(array $disabledApps) { |
@@ -48,6 +48,9 @@ discard block |
||
48 | 48 | $this->stack = $stack; |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param double $time |
|
53 | + */ |
|
51 | 54 | public function end($time) { |
52 | 55 | $this->end = $time; |
53 | 56 | } |
@@ -67,7 +70,7 @@ discard block |
||
67 | 70 | } |
68 | 71 | |
69 | 72 | /** |
70 | - * @return float |
|
73 | + * @return integer |
|
71 | 74 | */ |
72 | 75 | public function getStart() { |
73 | 76 | return $this->start; |
@@ -448,7 +448,7 @@ |
||
448 | 448 | * |
449 | 449 | * @param string $path source path |
450 | 450 | * @param string $destination destination path |
451 | - * @return bool|void false to stop handling, void to skip this handler |
|
451 | + * @return null|false false to stop handling, void to skip this handler |
|
452 | 452 | */ |
453 | 453 | public function beforeMoveFutureFile($path, $destination) { |
454 | 454 | $sourceNode = $this->tree->getNodeForPath($path); |
@@ -58,7 +58,6 @@ |
||
58 | 58 | * @param IConfig $config |
59 | 59 | * @param IL10N $l |
60 | 60 | * @param IURLGenerator $urlGenerator |
61 | - * @param \OC_Defaults $defaults |
|
62 | 61 | * @param IAppData $appData |
63 | 62 | * @param ICacheFactory $cacheFactory |
64 | 63 | * @param Util $util |