@@ -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; |
@@ -28,7 +28,6 @@ |
||
28 | 28 | namespace OCA\Files_Sharing\AppInfo; |
29 | 29 | |
30 | 30 | use OC\AppFramework\Utility\SimpleContainer; |
31 | -use OCA\Files_Sharing\API\Share20OCS; |
|
32 | 31 | use OCA\Files_Sharing\Controller\Share20OcsController; |
33 | 32 | use OCA\Files_Sharing\Controllers\ExternalSharesController; |
34 | 33 | use OCA\Files_Sharing\Controllers\ShareController; |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | /** |
512 | 512 | * @param \OCP\Files\File|\OCP\Files\Folder $node |
513 | 513 | * @param boolean $includeTags include tags in response |
514 | - * @param int|null $stateFilter state filter or empty for all, defaults to 0 (accepted) |
|
514 | + * @param integer $stateFilter state filter or empty for all, defaults to 0 (accepted) |
|
515 | 515 | * @return \OC\OCS\Result |
516 | 516 | */ |
517 | 517 | private function getSharedWithMe($node = null, $includeTags, $stateFilter = 0) { |
@@ -870,7 +870,7 @@ discard block |
||
870 | 870 | } |
871 | 871 | |
872 | 872 | /** |
873 | - * @param $id |
|
873 | + * @param integer $id |
|
874 | 874 | * @param $state |
875 | 875 | * @return \OC\OCS\Result |
876 | 876 | */ |
@@ -1041,6 +1041,7 @@ discard block |
||
1041 | 1041 | * not support this we need to check all backends. |
1042 | 1042 | * |
1043 | 1043 | * @param string $id |
1044 | + * @param string $recipient |
|
1044 | 1045 | * @return \OCP\Share\IShare |
1045 | 1046 | * @throws ShareNotFound |
1046 | 1047 | */ |