@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | * @param IRequest $request |
304 | 304 | * @throws LoginException |
305 | 305 | * @throws PasswordLoginForbiddenException |
306 | - * @return boolean |
|
306 | + * @return boolean|null |
|
307 | 307 | */ |
308 | 308 | public function logClientIn($user, $password, IRequest $request) { |
309 | 309 | $isTokenPassword = $this->isTokenPassword($password); |
@@ -346,6 +346,9 @@ discard block |
||
346 | 346 | return $this->config->getSystemValue('token_auth_enforced', false); |
347 | 347 | } |
348 | 348 | |
349 | + /** |
|
350 | + * @param string $username |
|
351 | + */ |
|
349 | 352 | protected function isTwoFactorEnforced($username) { |
350 | 353 | Util::emitHook( |
351 | 354 | '\OCA\Files_Sharing\API\Server2Server', |
@@ -857,6 +860,9 @@ discard block |
||
857 | 860 | } |
858 | 861 | } |
859 | 862 | |
863 | + /** |
|
864 | + * @param IRequest $request |
|
865 | + */ |
|
860 | 866 | public function verifyAuthHeaders($request) { |
861 | 867 | foreach ($this->getAuthModules(true) as $module) { |
862 | 868 | $user = $module->auth($request); |
@@ -876,7 +882,7 @@ discard block |
||
876 | 882 | } |
877 | 883 | |
878 | 884 | /** |
879 | - * @param $includeBuiltIn |
|
885 | + * @param boolean $includeBuiltIn |
|
880 | 886 | * @return \Generator | IAuthModule[] |
881 | 887 | * @throws Exception |
882 | 888 | */ |
@@ -257,6 +257,9 @@ discard block |
||
257 | 257 | 'file', 'create'); |
258 | 258 | } |
259 | 259 | |
260 | + /** |
|
261 | + * @param string $path |
|
262 | + */ |
|
260 | 263 | private function getPartFileBasePath($path) { |
261 | 264 | $partFileInStorage = \OC::$server->getConfig()->getSystemValue('part_file_in_storage', true); |
262 | 265 | if ($partFileInStorage) { |
@@ -626,7 +629,7 @@ discard block |
||
626 | 629 | /** |
627 | 630 | * Set $algo to get a specific checksum, leave null to get all checksums |
628 | 631 | * (space seperated) |
629 | - * @param null $algo |
|
632 | + * @param string $algo |
|
630 | 633 | * @return string |
631 | 634 | */ |
632 | 635 | public function getChecksum($algo = null) { |
@@ -649,6 +652,9 @@ discard block |
||
649 | 652 | return ''; |
650 | 653 | } |
651 | 654 | |
655 | + /** |
|
656 | + * @param string $string |
|
657 | + */ |
|
652 | 658 | protected function header($string) { |
653 | 659 | \header($string); |
654 | 660 | } |