@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * @param string $appName |
54 | 54 | * @param IRequest $request |
55 | - * @param Manager $userManager |
|
55 | + * @param UserManager $userManager |
|
56 | 56 | * @param DefaultTokenProvider $tokenProvider |
57 | 57 | * @param ISecureRandom $secureRandom |
58 | 58 | */ |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | * |
293 | 293 | * @param string $uid |
294 | 294 | * @param string $password |
295 | - * @return boolean|null |
|
295 | + * @return boolean |
|
296 | 296 | * @throws LoginException |
297 | 297 | */ |
298 | 298 | public function login($uid, $password) { |
@@ -374,6 +374,9 @@ discard block |
||
374 | 374 | return $this->config->getSystemValue('token_auth_enforced', false); |
375 | 375 | } |
376 | 376 | |
377 | + /** |
|
378 | + * @param string $username |
|
379 | + */ |
|
377 | 380 | protected function isTwoFactorEnforced($username) { |
378 | 381 | Util::emitHook( |
379 | 382 | '\OCA\Files_Sharing\API\Server2Server', |
@@ -445,6 +448,9 @@ discard block |
||
445 | 448 | return false; |
446 | 449 | } |
447 | 450 | |
451 | + /** |
|
452 | + * @param string $uid |
|
453 | + */ |
|
448 | 454 | private function loginWithToken($uid) { |
449 | 455 | // TODO: $this->manager->emit('\OC\User', 'preTokenLogin', array($uid)); |
450 | 456 | $user = $this->manager->get($uid); |
@@ -213,7 +213,7 @@ |
||
213 | 213 | * |
214 | 214 | * @param \Google_Service_Drive_DriveFile |
215 | 215 | * |
216 | - * @return true if the file is a Google Doc file, false otherwise |
|
216 | + * @return boolean if the file is a Google Doc file, false otherwise |
|
217 | 217 | */ |
218 | 218 | private function isGoogleDocFile($file) { |
219 | 219 | return $this->getGoogleDocExtension($file->getMimeType()) !== ''; |
@@ -20,7 +20,6 @@ |
||
20 | 20 | /** |
21 | 21 | * RemoveOldCalendarShares constructor. |
22 | 22 | * |
23 | - * @param IDBConnection $db |
|
24 | 23 | */ |
25 | 24 | public function __construct(IDBConnection $connection) { |
26 | 25 | $this->connection = $connection; |