@@ -31,7 +31,6 @@ |
||
31 | 31 | namespace OCA\DAV\Connector\Sabre; |
32 | 32 | |
33 | 33 | use OC\Files\View; |
34 | -use OCA\DAV\Upload\FutureFile; |
|
35 | 34 | use OCP\Files\ForbiddenException; |
36 | 35 | use OCP\IPreview; |
37 | 36 | use Sabre\DAV\Exception\Forbidden; |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * Set a value in the cache if it's not already stored |
66 | 66 | * |
67 | 67 | * @param string $key |
68 | - * @param mixed $value |
|
68 | + * @param integer $value |
|
69 | 69 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
70 | 70 | * @return bool |
71 | 71 | */ |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * Set a value in the cache if it's not already stored |
66 | 66 | * |
67 | 67 | * @param string $key |
68 | - * @param mixed $value |
|
68 | + * @param integer $value |
|
69 | 69 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
70 | 70 | * @return bool |
71 | 71 | */ |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | * @param OC\Security\Bruteforce\Throttler $throttler |
312 | 312 | * @throws LoginException |
313 | 313 | * @throws PasswordLoginForbiddenException |
314 | - * @return boolean |
|
314 | + * @return boolean|null |
|
315 | 315 | */ |
316 | 316 | public function logClientIn($user, |
317 | 317 | $password, |
@@ -361,6 +361,9 @@ discard block |
||
361 | 361 | return $this->config->getSystemValue('token_auth_enforced', false); |
362 | 362 | } |
363 | 363 | |
364 | + /** |
|
365 | + * @param string $username |
|
366 | + */ |
|
364 | 367 | protected function isTwoFactorEnforced($username) { |
365 | 368 | Util::emitHook( |
366 | 369 | '\OCA\Files_Sharing\API\Server2Server', |
@@ -1333,6 +1333,9 @@ |
||
1333 | 1333 | } |
1334 | 1334 | } |
1335 | 1335 | |
1336 | + /** |
|
1337 | + * @param string $lang |
|
1338 | + */ |
|
1336 | 1339 | protected static function findBestL10NOption($options, $lang) { |
1337 | 1340 | $fallback = $similarLangFallback = $englishFallback = false; |
1338 | 1341 |
@@ -46,6 +46,9 @@ |
||
46 | 46 | $this->hideNodesFromListings = true; |
47 | 47 | } |
48 | 48 | |
49 | + /** |
|
50 | + * @param string $privileges |
|
51 | + */ |
|
49 | 52 | function checkPrivileges($uri, $privileges, $recursion = self::R_PARENT, $throwExceptions = true) { |
50 | 53 | $access = parent::checkPrivileges($uri, $privileges, $recursion, false); |
51 | 54 | if($access === false && $throwExceptions) { |
@@ -25,14 +25,11 @@ |
||
25 | 25 | |
26 | 26 | use Sabre\CalDAV\Principal\User; |
27 | 27 | use Sabre\DAV\Exception\NotFound; |
28 | -use Sabre\DAV\IFile; |
|
29 | 28 | use Sabre\DAV\INode; |
30 | 29 | use \Sabre\DAV\PropFind; |
31 | 30 | use \Sabre\DAV\PropPatch; |
32 | -use Sabre\DAVACL\Exception\NeedPrivileges; |
|
33 | 31 | use \Sabre\HTTP\RequestInterface; |
34 | 32 | use \Sabre\HTTP\ResponseInterface; |
35 | -use Sabre\HTTP\URLUtil; |
|
36 | 33 | |
37 | 34 | /** |
38 | 35 | * Class DavAclPlugin is a wrapper around \Sabre\DAVACL\Plugin that returns 404 |