@@ -117,7 +117,7 @@ |
||
| 117 | 117 | /** |
| 118 | 118 | * Unix timestamp when lock was created |
| 119 | 119 | * |
| 120 | - * @return mixed |
|
| 120 | + * @return integer |
|
| 121 | 121 | * @since 11.0.0 |
| 122 | 122 | */ |
| 123 | 123 | public function getCreatedAt(): int { |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | /** |
| 184 | - * @param $message |
|
| 184 | + * @param string $message |
|
| 185 | 185 | * @param array $additional |
| 186 | 186 | * @return array |
| 187 | 187 | */ |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | |
| 282 | 282 | /** |
| 283 | 283 | * @param string $userId |
| 284 | - * @return array |
|
| 284 | + * @return string[] |
|
| 285 | 285 | */ |
| 286 | 286 | public function generateTokenAndLink($userId) { |
| 287 | 287 | $token = $this->secureRandom->generate(21, |
@@ -222,10 +222,10 @@ |
||
| 222 | 222 | * inform recipient about public link share |
| 223 | 223 | * |
| 224 | 224 | * @param string $recipient recipient email address |
| 225 | - * @param string $filename the shared file |
|
| 226 | - * @param string $link the public link |
|
| 227 | 225 | * @param array $options allows ['to], ['cc'] and ['bcc'] recipients |
| 228 | - * @param int $expiration expiration date (timestamp) |
|
| 226 | + * @param string $subject |
|
| 227 | + * @param boolean|string $htmlBody |
|
| 228 | + * @param boolean|string $textBody |
|
| 229 | 229 | * @return string[] $result of failed recipients |
| 230 | 230 | */ |
| 231 | 231 | public function sendLinkShareMailFromBody($recipient, $subject, $htmlBody, $textBody, $options = []) { |
@@ -657,7 +657,7 @@ |
||
| 657 | 657 | /** |
| 658 | 658 | * Determine if the string is, strictly-speaking, empty or not |
| 659 | 659 | * |
| 660 | - * @param $value |
|
| 660 | + * @param string $value |
|
| 661 | 661 | * @return bool |
| 662 | 662 | * @since 10.0.1 |
| 663 | 663 | */ |
@@ -146,6 +146,9 @@ |
||
| 146 | 146 | return $path; |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | + /** |
|
| 150 | + * @param string $kind |
|
| 151 | + */ |
|
| 149 | 152 | private function getTemplate($kind) { |
| 150 | 153 | if ($kind === 'simple') { |
| 151 | 154 | return self::$_templateSimple; |
@@ -246,7 +246,7 @@ |
||
| 246 | 246 | /** |
| 247 | 247 | * check if target already exists |
| 248 | 248 | * |
| 249 | - * @param $path |
|
| 249 | + * @param string $path |
|
| 250 | 250 | * @return bool |
| 251 | 251 | * @throws \Exception |
| 252 | 252 | */ |
@@ -32,12 +32,7 @@ |
||
| 32 | 32 | use OC\Helper\EnvironmentHelper; |
| 33 | 33 | use OCP\AppFramework\Utility\ITimeFactory; |
| 34 | 34 | use OCP\IConfig; |
| 35 | -use OCP\IL10N; |
|
| 36 | -use OCP\IURLGenerator; |
|
| 37 | 35 | use OCP\IUserManager; |
| 38 | -use OCP\Mail\IMailer; |
|
| 39 | -use OCP\Security\ISecureRandom; |
|
| 40 | -use OCP\Util; |
|
| 41 | 36 | use Symfony\Component\Console\Command\Command; |
| 42 | 37 | use Symfony\Component\Console\Input\InputInterface; |
| 43 | 38 | use Symfony\Component\Console\Input\InputArgument; |
@@ -103,17 +103,19 @@ discard block |
||
| 103 | 103 | * with the same attributes |
| 104 | 104 | * |
| 105 | 105 | * @since 9.0.0 |
| 106 | + * @return void |
|
| 106 | 107 | */ |
| 107 | 108 | public function updateTag($tagId, $newName, $userVisible, $userEditable, $userAssignable); |
| 108 | 109 | |
| 109 | 110 | /** |
| 110 | 111 | * Delete the given tags from the database and all their relationships. |
| 111 | 112 | * |
| 112 | - * @param string|array $tagIds array of tag ids |
|
| 113 | + * @param string $tagIds array of tag ids |
|
| 113 | 114 | * |
| 114 | 115 | * @throws \OCP\SystemTag\TagNotFoundException if at least one tag did not exist |
| 115 | 116 | * |
| 116 | 117 | * @since 9.0.0 |
| 118 | + * @return void |
|
| 117 | 119 | */ |
| 118 | 120 | public function deleteTags($tagIds); |
| 119 | 121 | |
@@ -124,7 +126,7 @@ discard block |
||
| 124 | 126 | * @param ISystemTag $tag tag to check permission for |
| 125 | 127 | * @param IUser $user user to check permission for |
| 126 | 128 | * |
| 127 | - * @return true if the user is allowed to assign/unassign the tag, false otherwise |
|
| 129 | + * @return boolean if the user is allowed to assign/unassign the tag, false otherwise |
|
| 128 | 130 | * |
| 129 | 131 | * @since 9.1.0 |
| 130 | 132 | */ |
@@ -134,9 +136,9 @@ discard block |
||
| 134 | 136 | * Checks whether the given user is allowed to see the tag with the given id. |
| 135 | 137 | * |
| 136 | 138 | * @param ISystemTag $tag tag to check permission for |
| 137 | - * @param IUser $user user to check permission for |
|
| 139 | + * @param IUser $userId user to check permission for |
|
| 138 | 140 | * |
| 139 | - * @return true if the user can see the tag, false otherwise |
|
| 141 | + * @return boolean if the user can see the tag, false otherwise |
|
| 140 | 142 | * |
| 141 | 143 | * @since 9.1.0 |
| 142 | 144 | */ |
@@ -149,6 +151,7 @@ discard block |
||
| 149 | 151 | * @param string[] $groupIds group ids of groups that can assign/unassign the tag |
| 150 | 152 | * |
| 151 | 153 | * @since 9.1.0 |
| 154 | + * @return void |
|
| 152 | 155 | */ |
| 153 | 156 | public function setTagGroups(ISystemTag $tag, $groupIds); |
| 154 | 157 | |