@@ -443,7 +443,7 @@ |
||
443 | 443 | /** |
444 | 444 | * get the file size of the unencrypted file |
445 | 445 | * @param string $path absolute path |
446 | - * @return bool |
|
446 | + * @return string |
|
447 | 447 | */ |
448 | 448 | public function getFileSize($path) { |
449 | 449 |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | |
338 | 338 | /** |
339 | 339 | * returns the internal ownCloud name for the given LDAP DN of the user, false on DN outside of search DN or failure |
340 | - * @param string $dn the dn of the user object |
|
340 | + * @param string $fdn the dn of the user object |
|
341 | 341 | * @param string $ldapName optional, the display name of the object |
342 | 342 | * @return string with with the name to use in ownCloud |
343 | 343 | */ |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | |
355 | 355 | /** |
356 | 356 | * returns an internal ownCloud name for the given LDAP DN, false on DN outside of search DN |
357 | - * @param string $dn the dn of the user object |
|
357 | + * @param string $fdn the dn of the user object |
|
358 | 358 | * @param string $ldapName optional, the display name of the object |
359 | 359 | * @param bool $isUser optional, whether it is a user object (otherwise group assumed) |
360 | 360 | * @return string with with the name to use in ownCloud |
@@ -640,7 +640,7 @@ discard block |
||
640 | 640 | |
641 | 641 | /** |
642 | 642 | * @param string $filter |
643 | - * @param string|string[] $attr |
|
643 | + * @param string[] $attr |
|
644 | 644 | * @param int $limit |
645 | 645 | * @param int $offset |
646 | 646 | * @return false|int |
@@ -679,6 +679,7 @@ discard block |
||
679 | 679 | * retrieved. Results will according to the order in the array. |
680 | 680 | * @param int $limit optional, maximum results to be counted |
681 | 681 | * @param int $offset optional, a starting point |
682 | + * @param string $filter |
|
682 | 683 | * @return array|false array with the search result as first value and pagedSearchOK as |
683 | 684 | * second | false if not successful |
684 | 685 | */ |
@@ -935,7 +936,7 @@ discard block |
||
935 | 936 | |
936 | 937 | /** |
937 | 938 | * @param string $name |
938 | - * @return bool|mixed|string |
|
939 | + * @return string |
|
939 | 940 | */ |
940 | 941 | public function sanitizeUsername($name) { |
941 | 942 | if($this->connection->ldapIgnoreNamingRules) { |
@@ -959,6 +960,7 @@ discard block |
||
959 | 960 | * escapes (user provided) parts for LDAP filter |
960 | 961 | * @param string $input, the provided value |
961 | 962 | * @param bool $allowAsterisk whether in * at the beginning should be preserved |
963 | + * @param string $input |
|
962 | 964 | * @return string the escaped string |
963 | 965 | */ |
964 | 966 | public function escapeFilterPart($input, $allowAsterisk = false) { |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | /** |
172 | 172 | * Returns the data |
173 | 173 | * |
174 | - * @return string|resource |
|
174 | + * @return string|null |
|
175 | 175 | */ |
176 | 176 | public function get() { |
177 | 177 | //throw exception if encryption is disabled but files are still encrypted |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | * |
237 | 237 | * Return null if the ETag can not effectively be determined |
238 | 238 | * |
239 | - * @return mixed |
|
239 | + * @return string |
|
240 | 240 | */ |
241 | 241 | public function getETag() { |
242 | 242 | return '"' . $this->info->getEtag() . '"'; |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | * |
248 | 248 | * If null is returned, we'll assume application/octet-stream |
249 | 249 | * |
250 | - * @return mixed |
|
250 | + * @return string |
|
251 | 251 | */ |
252 | 252 | public function getContentType() { |
253 | 253 | $mimeType = $this->info->getMimetype(); |