@@ -180,10 +180,10 @@ |
||
| 180 | 180 | * inform recipient about public link share |
| 181 | 181 | * |
| 182 | 182 | * @param string $recipient recipient email address |
| 183 | - * @param string $filename the shared file |
|
| 184 | - * @param string $link the public link |
|
| 185 | 183 | * @param array $options allows ['cc'] and ['bcc'] recipients |
| 186 | - * @param int $expiration expiration date (timestamp) |
|
| 184 | + * @param string $subject |
|
| 185 | + * @param boolean|string $htmlBody |
|
| 186 | + * @param boolean|string $textBody |
|
| 187 | 187 | * @return string[] $result of failed recipients |
| 188 | 188 | */ |
| 189 | 189 | public function sendLinkShareMailFromBody($recipient, $subject, $htmlBody, $textBody, $options = array()) { |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * @param string $sourcePath source path |
| 47 | 47 | * @param string $destination destination path |
| 48 | - * @return bool|void |
|
| 48 | + * @return null|false |
|
| 49 | 49 | * @throws BadRequest |
| 50 | 50 | * @throws \Sabre\DAV\Exception\NotFound |
| 51 | 51 | */ |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * |
| 70 | 70 | * @param string $path source path |
| 71 | 71 | * @param string $destination destination path |
| 72 | - * @return bool|void false to stop handling, void to skip this handler |
|
| 72 | + * @return null|false false to stop handling, void to skip this handler |
|
| 73 | 73 | */ |
| 74 | 74 | public function performMove($path, $destination) { |
| 75 | 75 | if (!$this->server->tree->nodeExists($destination)) { |
@@ -270,6 +270,9 @@ discard block |
||
| 270 | 270 | return array_values($calendars); |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | + /** |
|
| 274 | + * @param string $principalUri |
|
| 275 | + */ |
|
| 273 | 276 | public function getUsersOwnCalendars($principalUri) { |
| 274 | 277 | $principalUri = $this->convertPrincipal($principalUri, true); |
| 275 | 278 | $fields = array_values($this->propertyMap); |
@@ -1279,7 +1282,7 @@ discard block |
||
| 1279 | 1282 | * @param string $principalUri |
| 1280 | 1283 | * @param string $uri |
| 1281 | 1284 | * @param array $properties |
| 1282 | - * @return mixed |
|
| 1285 | + * @return integer |
|
| 1283 | 1286 | * @throws Forbidden |
| 1284 | 1287 | */ |
| 1285 | 1288 | function createSubscription($principalUri, $uri, array $properties) { |
@@ -1685,6 +1688,9 @@ discard block |
||
| 1685 | 1688 | return $this->sharingBackend->applyShareAcl($resourceId, $acl); |
| 1686 | 1689 | } |
| 1687 | 1690 | |
| 1691 | + /** |
|
| 1692 | + * @param boolean $toV2 |
|
| 1693 | + */ |
|
| 1688 | 1694 | private function convertPrincipal($principalUri, $toV2 = null) { |
| 1689 | 1695 | if ($this->principalBackend->getPrincipalPrefix() === 'principals') { |
| 1690 | 1696 | list(, $name) = URLUtil::splitPath($principalUri); |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | use OCP\Authentication\IAuthModule; |
| 31 | 31 | use OCP\IRequest; |
| 32 | 32 | use OCP\ISession; |
| 33 | -use OCP\IUser; |
|
| 34 | 33 | use OCP\IUserManager; |
| 35 | 34 | use OCP\Session\Exceptions\SessionNotAvailableException; |
| 36 | 35 | |
@@ -113,6 +113,8 @@ |
||
| 113 | 113 | * INTERNAL USE ONLY!! This method isn't part of the IManager interface |
| 114 | 114 | * @internal This should only be used by the RegisterNotifierEventImpl (the real implementation). |
| 115 | 115 | * Do NOT use this method outside as it might not work as expected. |
| 116 | + * @param string $id |
|
| 117 | + * @param string $name |
|
| 116 | 118 | */ |
| 117 | 119 | public function registerBuiltNotifier(INotifier $notifier, $id, $name) { |
| 118 | 120 | if (!isset($this->builtNotifiersHolder[$id]) && !isset($this->notifiersInfo[$id])) { |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | - * @param object|string $object an object or classname |
|
| 49 | + * @param \OCP\AppFramework\Controller $object an object or classname |
|
| 50 | 50 | * @param string $method the method which we want to inspect |
| 51 | 51 | * @throws \ReflectionException |
| 52 | 52 | */ |
@@ -134,7 +134,6 @@ |
||
| 134 | 134 | * @NoAdminRequired |
| 135 | 135 | * @NoSubadminRequired |
| 136 | 136 | * |
| 137 | - * @param string $domain Domain to remove |
|
| 138 | 137 | * @return RedirectResponse Redirection to the settings page. |
| 139 | 138 | */ |
| 140 | 139 | public function removeDomain($id) { |
@@ -109,8 +109,8 @@ |
||
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | - * @param $controller |
|
| 113 | - * @param $methodName |
|
| 112 | + * @param Controller $controller |
|
| 113 | + * @param string $methodName |
|
| 114 | 114 | * @throws TwoFactorAuthRequiredException |
| 115 | 115 | * @throws UserAlreadyLoggedInException |
| 116 | 116 | */ |
@@ -32,7 +32,6 @@ |
||
| 32 | 32 | use OC\OCS\Result; |
| 33 | 33 | use OC_Helper; |
| 34 | 34 | use OCP\API; |
| 35 | -use OCP\Files\FileInfo; |
|
| 36 | 35 | use OCP\Files\NotFoundException; |
| 37 | 36 | use OCP\IGroup; |
| 38 | 37 | use OCP\IGroupManager; |