@@ -334,7 +334,7 @@ |
||
334 | 334 | * |
335 | 335 | * @param int $size file size in bytes |
336 | 336 | * @param array $files override '.htaccess' and '.user.ini' locations |
337 | - * @return bool false on failure, size on success |
|
337 | + * @return integer false on failure, size on success |
|
338 | 338 | */ |
339 | 339 | public static function setUploadLimit($size, $files = []) { |
340 | 340 | //don't allow user to break his config |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | /** |
130 | 130 | * returns the registerd classes in the given table |
131 | 131 | * |
132 | - * @param $table |
|
132 | + * @param string $table |
|
133 | 133 | * @return string[] |
134 | 134 | */ |
135 | 135 | private function getClasses($table) { |
@@ -225,6 +225,11 @@ discard block |
||
225 | 225 | ); |
226 | 226 | } |
227 | 227 | |
228 | + /** |
|
229 | + * @param string $table |
|
230 | + * @param string $idCol |
|
231 | + * @param string $id |
|
232 | + */ |
|
228 | 233 | private function update($table, $idCol, $id, $values) { |
229 | 234 | $query = $this->dbc->getQueryBuilder(); |
230 | 235 | $query->update($table); |
@@ -275,7 +280,7 @@ discard block |
||
275 | 280 | /** |
276 | 281 | * deletes an settings or admin entry from the given table |
277 | 282 | * |
278 | - * @param $table |
|
283 | + * @param string $table |
|
279 | 284 | * @param $className |
280 | 285 | */ |
281 | 286 | private function remove($table, $className) { |
@@ -358,6 +363,9 @@ discard block |
||
358 | 363 | return $sections; |
359 | 364 | } |
360 | 365 | |
366 | + /** |
|
367 | + * @param string $section |
|
368 | + */ |
|
361 | 369 | private function getBuiltInAdminSettings($section) { |
362 | 370 | $forms = []; |
363 | 371 | try { |
@@ -397,6 +405,9 @@ discard block |
||
397 | 405 | return $forms; |
398 | 406 | } |
399 | 407 | |
408 | + /** |
|
409 | + * @param string $section |
|
410 | + */ |
|
400 | 411 | private function getAdminSettingsFromDB($section, &$settings) { |
401 | 412 | $query = $this->dbc->getQueryBuilder(); |
402 | 413 | $query->select(['class', 'priority']) |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @NoAdminRequired |
74 | 74 | * @NoSubadminRequired |
75 | - * @return array |
|
75 | + * @return DataResponse |
|
76 | 76 | */ |
77 | 77 | public function addPersonalRootCertificate() { |
78 | 78 | return $this->addCertificate($this->userCertificateManager); |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * Add a new personal root certificate to the system's trust store |
162 | 162 | * |
163 | - * @return array |
|
163 | + * @return DataResponse |
|
164 | 164 | */ |
165 | 165 | public function addSystemRootCertificate() { |
166 | 166 | return $this->addCertificate($this->systemCertificateManager); |
@@ -36,7 +36,6 @@ |
||
36 | 36 | use OCA\Files_Sharing\ISharedStorage; |
37 | 37 | use OCP\Constants; |
38 | 38 | use OCP\Files\Cache\ICacheEntry; |
39 | -use OCP\Files\Storage\IStorage; |
|
40 | 39 | use OCP\Lock\ILockingProvider; |
41 | 40 | |
42 | 41 | /** |
@@ -95,7 +95,7 @@ |
||
95 | 95 | * @param string $key |
96 | 96 | * @param mixed $value |
97 | 97 | * @param int $ttl |
98 | - * @return bool|mixed |
|
98 | + * @return boolean |
|
99 | 99 | * @throws \OC\ForbiddenException |
100 | 100 | */ |
101 | 101 | public function set($key, $value, $ttl = 0) { |
@@ -335,7 +335,7 @@ |
||
335 | 335 | * split user and remote from federated cloud id |
336 | 336 | * |
337 | 337 | * @param string $address federated share address |
338 | - * @return array [user, remoteURL] |
|
338 | + * @return string[] [user, remoteURL] |
|
339 | 339 | * @throws \Exception |
340 | 340 | */ |
341 | 341 | public function splitUserRemote($address) { |
@@ -132,7 +132,7 @@ |
||
132 | 132 | } |
133 | 133 | |
134 | 134 | /** |
135 | - * @param $message |
|
135 | + * @param string $message |
|
136 | 136 | * @param array $additional |
137 | 137 | * @return array |
138 | 138 | */ |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | |
362 | 362 | /** |
363 | 363 | * returns the internal ownCloud name for the given LDAP DN of the user, false on DN outside of search DN or failure |
364 | - * @param string $dn the dn of the user object |
|
364 | + * @param string $fdn the dn of the user object |
|
365 | 365 | * @param string $ldapName optional, the display name of the object |
366 | 366 | * @return string|false with with the name to use in ownCloud |
367 | 367 | */ |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | |
379 | 379 | /** |
380 | 380 | * returns an internal ownCloud name for the given LDAP DN, false on DN outside of search DN |
381 | - * @param string $dn the dn of the user object |
|
381 | + * @param string $fdn the dn of the user object |
|
382 | 382 | * @param string $ldapName optional, the display name of the object |
383 | 383 | * @param bool $isUser optional, whether it is a user object (otherwise group assumed) |
384 | 384 | * @return string|false with with the name to use in ownCloud |
@@ -638,7 +638,7 @@ discard block |
||
638 | 638 | * the login filter. |
639 | 639 | * |
640 | 640 | * @param string $loginName |
641 | - * @param array $attributes optional, list of attributes to read |
|
641 | + * @param string[] $attributes optional, list of attributes to read |
|
642 | 642 | * @return array |
643 | 643 | */ |
644 | 644 | public function fetchUsersByLoginName($loginName, $attributes = array('dn')) { |
@@ -711,7 +711,7 @@ discard block |
||
711 | 711 | |
712 | 712 | /** |
713 | 713 | * @param string $filter |
714 | - * @param string|string[] $attr |
|
714 | + * @param string[] $attr |
|
715 | 715 | * @param int $limit |
716 | 716 | * @param int $offset |
717 | 717 | * @return array |
@@ -759,7 +759,7 @@ discard block |
||
759 | 759 | |
760 | 760 | /** |
761 | 761 | * @param string $filter |
762 | - * @param string|string[] $attr |
|
762 | + * @param string[] $attr |
|
763 | 763 | * @param int $limit |
764 | 764 | * @param int $offset |
765 | 765 | * @return false|int |
@@ -809,6 +809,7 @@ discard block |
||
809 | 809 | * retrieved. Results will according to the order in the array. |
810 | 810 | * @param int $limit optional, maximum results to be counted |
811 | 811 | * @param int $offset optional, a starting point |
812 | + * @param string $filter |
|
812 | 813 | * @return array|false array with the search result as first value and pagedSearchOK as |
813 | 814 | * second | false if not successful |
814 | 815 | */ |
@@ -1063,7 +1064,7 @@ discard block |
||
1063 | 1064 | |
1064 | 1065 | /** |
1065 | 1066 | * @param string $name |
1066 | - * @return bool|mixed|string |
|
1067 | + * @return string |
|
1067 | 1068 | */ |
1068 | 1069 | public function sanitizeUsername($name) { |
1069 | 1070 | if($this->connection->ldapIgnoreNamingRules) { |
@@ -1087,6 +1088,7 @@ discard block |
||
1087 | 1088 | * escapes (user provided) parts for LDAP filter |
1088 | 1089 | * @param string $input, the provided value |
1089 | 1090 | * @param bool $allowAsterisk whether in * at the beginning should be preserved |
1091 | + * @param string $input |
|
1090 | 1092 | * @return string the escaped string |
1091 | 1093 | */ |
1092 | 1094 | public function escapeFilterPart($input, $allowAsterisk = false) { |
@@ -35,7 +35,6 @@ |
||
35 | 35 | use OC\Core\Controller\LostController; |
36 | 36 | use OC\Core\Controller\TokenController; |
37 | 37 | use OC\Core\Controller\TwoFactorChallengeController; |
38 | -use OC\Core\Controller\UserController; |
|
39 | 38 | use OCP\AppFramework\App; |
40 | 39 | use OCP\Util; |
41 | 40 |