@@ -193,10 +193,10 @@ discard block |
||
193 | 193 | * publish activity if a file/folder was shared by mail |
194 | 194 | * |
195 | 195 | * @param $subject |
196 | - * @param $parameters |
|
197 | - * @param $affectedUser |
|
196 | + * @param string[] $parameters |
|
197 | + * @param string $affectedUser |
|
198 | 198 | * @param $fileId |
199 | - * @param $filePath |
|
199 | + * @param string $filePath |
|
200 | 200 | */ |
201 | 201 | protected function publishActivity($subject, $parameters, $affectedUser, $fileId, $filePath) { |
202 | 202 | $event = $this->activityManager->generateEvent(); |
@@ -248,6 +248,12 @@ discard block |
||
248 | 248 | |
249 | 249 | } |
250 | 250 | |
251 | + /** |
|
252 | + * @param string $link |
|
253 | + * @param string $owner |
|
254 | + * @param string $initiator |
|
255 | + * @param string $shareWith |
|
256 | + */ |
|
251 | 257 | protected function sendMailNotification($filename, $link, $owner, $initiator, $shareWith) { |
252 | 258 | $ownerUser = $this->userManager->get($owner); |
253 | 259 | $initiatorUser = $this->userManager->get($initiator); |
@@ -296,6 +302,7 @@ discard block |
||
296 | 302 | * @param string $filename |
297 | 303 | * @param string $initiator |
298 | 304 | * @param string $shareWith |
305 | + * @param string $password |
|
299 | 306 | */ |
300 | 307 | protected function sendPassword($filename, $initiator, $shareWith, $password) { |
301 | 308 | |
@@ -769,7 +776,7 @@ discard block |
||
769 | 776 | /** |
770 | 777 | * get database row of a give share |
771 | 778 | * |
772 | - * @param $id |
|
779 | + * @param integer $id |
|
773 | 780 | * @return array |
774 | 781 | * @throws ShareNotFound |
775 | 782 | */ |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | |
491 | 491 | /** |
492 | 492 | * returns the internal Nextcloud name for the given LDAP DN of the user, false on DN outside of search DN or failure |
493 | - * @param string $dn the dn of the user object |
|
493 | + * @param string $fdn the dn of the user object |
|
494 | 494 | * @param string $ldapName optional, the display name of the object |
495 | 495 | * @return string|false with with the name to use in Nextcloud |
496 | 496 | */ |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | |
508 | 508 | /** |
509 | 509 | * returns an internal Nextcloud name for the given LDAP DN, false on DN outside of search DN |
510 | - * @param string $dn the dn of the user object |
|
510 | + * @param string $fdn the dn of the user object |
|
511 | 511 | * @param string $ldapName optional, the display name of the object |
512 | 512 | * @param bool $isUser optional, whether it is a user object (otherwise group assumed) |
513 | 513 | * @return string|false with with the name to use in Nextcloud |
@@ -770,7 +770,7 @@ discard block |
||
770 | 770 | * the login filter. |
771 | 771 | * |
772 | 772 | * @param string $loginName |
773 | - * @param array $attributes optional, list of attributes to read |
|
773 | + * @param string[] $attributes optional, list of attributes to read |
|
774 | 774 | * @return array |
775 | 775 | */ |
776 | 776 | public function fetchUsersByLoginName($loginName, $attributes = array('dn')) { |
@@ -843,7 +843,7 @@ discard block |
||
843 | 843 | |
844 | 844 | /** |
845 | 845 | * @param string $filter |
846 | - * @param string|string[] $attr |
|
846 | + * @param string[] $attr |
|
847 | 847 | * @param int $limit |
848 | 848 | * @param int $offset |
849 | 849 | * @return array |
@@ -891,7 +891,7 @@ discard block |
||
891 | 891 | |
892 | 892 | /** |
893 | 893 | * @param string $filter |
894 | - * @param string|string[] $attr |
|
894 | + * @param string[] $attr |
|
895 | 895 | * @param int $limit |
896 | 896 | * @param int $offset |
897 | 897 | * @return false|int |
@@ -941,6 +941,7 @@ discard block |
||
941 | 941 | * retrieved. Results will according to the order in the array. |
942 | 942 | * @param int $limit optional, maximum results to be counted |
943 | 943 | * @param int $offset optional, a starting point |
944 | + * @param string $filter |
|
944 | 945 | * @return array|false array with the search result as first value and pagedSearchOK as |
945 | 946 | * second | false if not successful |
946 | 947 | */ |
@@ -1191,7 +1192,7 @@ discard block |
||
1191 | 1192 | |
1192 | 1193 | /** |
1193 | 1194 | * @param string $name |
1194 | - * @return bool|mixed|string |
|
1195 | + * @return string |
|
1195 | 1196 | */ |
1196 | 1197 | public function sanitizeUsername($name) { |
1197 | 1198 | if($this->connection->ldapIgnoreNamingRules) { |
@@ -1215,6 +1216,7 @@ discard block |
||
1215 | 1216 | * escapes (user provided) parts for LDAP filter |
1216 | 1217 | * @param string $input, the provided value |
1217 | 1218 | * @param bool $allowAsterisk whether in * at the beginning should be preserved |
1219 | + * @param string $input |
|
1218 | 1220 | * @return string the escaped string |
1219 | 1221 | */ |
1220 | 1222 | public function escapeFilterPart($input, $allowAsterisk = false) { |
@@ -335,7 +335,7 @@ |
||
335 | 335 | * Adds a heading to the email |
336 | 336 | * |
337 | 337 | * @param string $title |
338 | - * @param string $plainTitle|bool Title that is used in the plain text email |
|
338 | + * @param string $plainTitle Title that is used in the plain text email |
|
339 | 339 | * if empty the $title is used, if false none will be used |
340 | 340 | */ |
341 | 341 | public function addHeading($title, $plainTitle = '') { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | private $parameters = []; |
38 | 38 | |
39 | 39 | /** |
40 | - * @param object $object an object or classname |
|
40 | + * @param \OCP\AppFramework\Controller $object an object or classname |
|
41 | 41 | * @param string $method the method which we want to inspect |
42 | 42 | */ |
43 | 43 | public function reflect($object, $method){ |
@@ -436,6 +436,11 @@ |
||
436 | 436 | return $url; |
437 | 437 | } |
438 | 438 | |
439 | + /** |
|
440 | + * @param string $feature |
|
441 | + * @param string $value |
|
442 | + * @param string $oldValue |
|
443 | + */ |
|
439 | 444 | public function triggerChange($feature, $value = null, $oldValue = null) { |
440 | 445 | if ($this->emitter) { |
441 | 446 | $this->emitter->emit('\OC\User', 'changeUser', array($this, $feature, $value, $oldValue)); |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | * @param IUser $user |
330 | 330 | * @param array $loginDetails |
331 | 331 | * @param bool $regenerateSessionId |
332 | - * @return true returns true if login successful or an exception otherwise |
|
332 | + * @return boolean returns true if login successful or an exception otherwise |
|
333 | 333 | * @throws LoginException |
334 | 334 | */ |
335 | 335 | public function completeLogin(IUser $user, array $loginDetails, $regenerateSessionId = true) { |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | * @param OC\Security\Bruteforce\Throttler $throttler |
378 | 378 | * @throws LoginException |
379 | 379 | * @throws PasswordLoginForbiddenException |
380 | - * @return boolean |
|
380 | + * @return boolean|null |
|
381 | 381 | */ |
382 | 382 | public function logClientIn($user, |
383 | 383 | $password, |
@@ -431,6 +431,9 @@ discard block |
||
431 | 431 | return $this->config->getSystemValue('token_auth_enforced', false); |
432 | 432 | } |
433 | 433 | |
434 | + /** |
|
435 | + * @param string $username |
|
436 | + */ |
|
434 | 437 | protected function isTwoFactorEnforced($username) { |
435 | 438 | Util::emitHook( |
436 | 439 | '\OCA\Files_Sharing\API\Server2Server', |
@@ -55,6 +55,7 @@ discard block |
||
55 | 55 | * Adds a header to the email |
56 | 56 | * |
57 | 57 | * @since 12.0.0 |
58 | + * @return void |
|
58 | 59 | */ |
59 | 60 | public function addHeader(); |
60 | 61 | |
@@ -62,10 +63,11 @@ discard block |
||
62 | 63 | * Adds a heading to the email |
63 | 64 | * |
64 | 65 | * @param string $title |
65 | - * @param string $plainTitle|bool Title that is used in the plain text email |
|
66 | + * @param string $plainTitle Title that is used in the plain text email |
|
66 | 67 | * if empty the $title is used, if false none will be used |
67 | 68 | * |
68 | 69 | * @since 12.0.0 |
70 | + * @return void |
|
69 | 71 | */ |
70 | 72 | public function addHeading($title, $plainTitle = ''); |
71 | 73 | |
@@ -77,6 +79,7 @@ discard block |
||
77 | 79 | * if empty the $text is used, if false none will be used |
78 | 80 | * |
79 | 81 | * @since 12.0.0 |
82 | + * @return void |
|
80 | 83 | */ |
81 | 84 | public function addBodyText($text, $plainText = ''); |
82 | 85 | |
@@ -91,6 +94,7 @@ discard block |
||
91 | 94 | * @param string $plainTextRight Text of right button that is used in the plain text version - if empty the $textRight is used |
92 | 95 | * |
93 | 96 | * @since 12.0.0 |
97 | + * @return void |
|
94 | 98 | */ |
95 | 99 | public function addBodyButtonGroup($textLeft, $urlLeft, $textRight, $urlRight, $plainTextLeft = '', $plainTextRight = ''); |
96 | 100 | |
@@ -103,6 +107,7 @@ discard block |
||
103 | 107 | * if empty the $text is used, if false none will be used |
104 | 108 | * |
105 | 109 | * @since 12.0.0 |
110 | + * @return void |
|
106 | 111 | */ |
107 | 112 | public function addBodyButton($text, $url, $plainText = ''); |
108 | 113 | |
@@ -112,6 +117,7 @@ discard block |
||
112 | 117 | * @param string $text If the text is empty the default "Name - Slogan<br>This is an automatically generated email" will be used |
113 | 118 | * |
114 | 119 | * @since 12.0.0 |
120 | + * @return void |
|
115 | 121 | */ |
116 | 122 | public function addFooter($text = ''); |
117 | 123 |
@@ -99,7 +99,7 @@ |
||
99 | 99 | * @param bool $isLoggedIn |
100 | 100 | * @param bool $isAdminUser |
101 | 101 | * @param ContentSecurityPolicyManager $contentSecurityPolicyManager |
102 | - * @param CSRFTokenManager $csrfTokenManager |
|
102 | + * @param CsrfTokenManager $csrfTokenManager |
|
103 | 103 | * @param ContentSecurityPolicyNonceManager $cspNonceManager |
104 | 104 | */ |
105 | 105 | public function __construct(IRequest $request, |