@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * |
| 42 | 42 | * @param \Sabre\DAV\Server $server |
| 43 | 43 | * @param string $realm |
| 44 | - * @return bool |
|
| 44 | + * @return boolean|null |
|
| 45 | 45 | */ |
| 46 | 46 | function authenticate(\Sabre\DAV\Server $server, $realm) { |
| 47 | 47 | $userSession = \OC::$server->getUserSession(); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | * |
| 62 | 62 | * If nobody is currently logged in, this method should return null. |
| 63 | 63 | * |
| 64 | - * @return string|null |
|
| 64 | + * @return string |
|
| 65 | 65 | */ |
| 66 | 66 | function getCurrentUser() { |
| 67 | 67 | return $this->user; |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | * Checks whether the given path is a part file |
| 160 | 160 | * |
| 161 | 161 | * @param string $path Path that may identify a .part file |
| 162 | - * @return string File path without .part extension |
|
| 162 | + * @return boolean File path without .part extension |
|
| 163 | 163 | * @note this is needed for reusing keys |
| 164 | 164 | */ |
| 165 | 165 | private function isPartFile($path) { |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | use OC\Files\Filesystem; |
| 31 | 31 | use OC\Files\View; |
| 32 | 32 | use OCP\Encryption\IEncryptionModule; |
| 33 | -use OCP\Files\Storage; |
|
| 34 | 33 | use OCP\IConfig; |
| 35 | 34 | |
| 36 | 35 | class Util { |
@@ -20,7 +20,6 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | 22 | use OC\Share\MailNotifications; |
| 23 | -use OCP\IConfig; |
|
| 24 | 23 | use OCP\IL10N; |
| 25 | 24 | use OCP\IUser; |
| 26 | 25 | use OCP\Mail\IMailer; |