@@ -52,7 +52,7 @@ |
||
| 52 | 52 | * Wrapper around file_put_contents($filename, $data) |
| 53 | 53 | * |
| 54 | 54 | * @param string $filename |
| 55 | - * @param $data |
|
| 55 | + * @param string $data |
|
| 56 | 56 | * @return int|false |
| 57 | 57 | */ |
| 58 | 58 | public function file_put_contents($filename, $data) { |
@@ -150,7 +150,6 @@ |
||
| 150 | 150 | /** |
| 151 | 151 | * saves database schema to xml file |
| 152 | 152 | * @param string $file name of file |
| 153 | - * @param int $mode |
|
| 154 | 153 | * @return bool |
| 155 | 154 | * |
| 156 | 155 | * TODO: write more documentation |
@@ -412,6 +412,10 @@ |
||
| 412 | 412 | return $url; |
| 413 | 413 | } |
| 414 | 414 | |
| 415 | + /** |
|
| 416 | + * @param string $feature |
|
| 417 | + * @param string $value |
|
| 418 | + */ |
|
| 415 | 419 | public function triggerChange($feature, $value = null) { |
| 416 | 420 | if ($this->emitter) { |
| 417 | 421 | $this->emitter->emit('\OC\User', 'changeUser', array($this, $feature, $value)); |
@@ -508,7 +508,7 @@ discard block |
||
| 508 | 508 | * if wnd.logging.enable is set to true in the config will log a leave line |
| 509 | 509 | * with the given function, the return value or the exception |
| 510 | 510 | * |
| 511 | - * @param $function |
|
| 511 | + * @param string $function |
|
| 512 | 512 | * @param mixed $result an exception will be logged and then returned |
| 513 | 513 | * @return mixed |
| 514 | 514 | */ |
@@ -535,6 +535,9 @@ discard block |
||
| 535 | 535 | return $result; |
| 536 | 536 | } |
| 537 | 537 | |
| 538 | + /** |
|
| 539 | + * @param string $function |
|
| 540 | + */ |
|
| 538 | 541 | private function swallow($function, \Exception $exception) { |
| 539 | 542 | if (\OC::$server->getConfig()->getSystemValue('wnd.logging.enable', false) === true) { |
| 540 | 543 | Util::writeLog('wnd', "$function swallowing ".get_class($exception) |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use OCP\IUser; |
| 28 | 28 | use OCP\ILogger; |
| 29 | 29 | use OCP\Files\Folder; |
| 30 | - |
|
| 31 | 30 | use OC\Share20\Exception\ShareNotFound; |
| 32 | 31 | |
| 33 | 32 | /** |
@@ -21,10 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | namespace OC\Files\Config; |
| 23 | 23 | |
| 24 | -use OC\Files\Filesystem; |
|
| 25 | -use OCP\Files\Config\ICachedMountInfo; |
|
| 26 | 24 | use OCP\Files\Mount\IMountPoint; |
| 27 | -use OCP\Files\Node; |
|
| 28 | 25 | use OCP\IUser; |
| 29 | 26 | |
| 30 | 27 | class LazyStorageMountInfo extends CachedMountInfo { |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | |
| 396 | 396 | /** |
| 397 | 397 | * returns the internal ownCloud name for the given LDAP DN of the user, false on DN outside of search DN or failure |
| 398 | - * @param string $dn the dn of the user object |
|
| 398 | + * @param string $fdn the dn of the user object |
|
| 399 | 399 | * @param string $ldapName optional, the display name of the object |
| 400 | 400 | * @return string|false with with the name to use in ownCloud |
| 401 | 401 | */ |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | |
| 413 | 413 | /** |
| 414 | 414 | * returns an internal ownCloud name for the given LDAP DN, false on DN outside of search DN |
| 415 | - * @param string $dn the dn of the user object |
|
| 415 | + * @param string $fdn the dn of the user object |
|
| 416 | 416 | * @param string $ldapName optional, the display name of the object |
| 417 | 417 | * @param bool $isUser optional, whether it is a user object (otherwise group assumed) |
| 418 | 418 | * @return string|false with with the name to use in ownCloud |
@@ -672,7 +672,7 @@ discard block |
||
| 672 | 672 | * the login filter. |
| 673 | 673 | * |
| 674 | 674 | * @param string $loginName |
| 675 | - * @param array $attributes optional, list of attributes to read |
|
| 675 | + * @param string[] $attributes optional, list of attributes to read |
|
| 676 | 676 | * @return array |
| 677 | 677 | */ |
| 678 | 678 | public function fetchUsersByLoginName($loginName, $attributes = array('dn')) { |
@@ -745,7 +745,7 @@ discard block |
||
| 745 | 745 | |
| 746 | 746 | /** |
| 747 | 747 | * @param string $filter |
| 748 | - * @param string|string[] $attr |
|
| 748 | + * @param string[] $attr |
|
| 749 | 749 | * @param int $limit |
| 750 | 750 | * @param int $offset |
| 751 | 751 | * @return array |
@@ -793,7 +793,7 @@ discard block |
||
| 793 | 793 | |
| 794 | 794 | /** |
| 795 | 795 | * @param string $filter |
| 796 | - * @param string|string[] $attr |
|
| 796 | + * @param string[] $attr |
|
| 797 | 797 | * @param int $limit |
| 798 | 798 | * @param int $offset |
| 799 | 799 | * @return false|int |
@@ -843,6 +843,7 @@ discard block |
||
| 843 | 843 | * retrieved. Results will according to the order in the array. |
| 844 | 844 | * @param int $limit optional, maximum results to be counted |
| 845 | 845 | * @param int $offset optional, a starting point |
| 846 | + * @param string $filter |
|
| 846 | 847 | * @return array|false array with the search result as first value and pagedSearchOK as |
| 847 | 848 | * second | false if not successful |
| 848 | 849 | */ |
@@ -1097,7 +1098,7 @@ discard block |
||
| 1097 | 1098 | |
| 1098 | 1099 | /** |
| 1099 | 1100 | * @param string $name |
| 1100 | - * @return bool|mixed|string |
|
| 1101 | + * @return string |
|
| 1101 | 1102 | */ |
| 1102 | 1103 | public function sanitizeUsername($name) { |
| 1103 | 1104 | if($this->connection->ldapIgnoreNamingRules) { |
@@ -1121,6 +1122,7 @@ discard block |
||
| 1121 | 1122 | * escapes (user provided) parts for LDAP filter |
| 1122 | 1123 | * @param string $input, the provided value |
| 1123 | 1124 | * @param bool $allowAsterisk whether in * at the beginning should be preserved |
| 1125 | + * @param string $input |
|
| 1124 | 1126 | * @return string the escaped string |
| 1125 | 1127 | */ |
| 1126 | 1128 | public function escapeFilterPart($input, $allowAsterisk = false) { |
@@ -559,7 +559,7 @@ |
||
| 559 | 559 | /** |
| 560 | 560 | * @param string $host |
| 561 | 561 | * @param string $port |
| 562 | - * @return false|void |
|
| 562 | + * @return boolean |
|
| 563 | 563 | * @throws \OC\ServerNotAvailableException |
| 564 | 564 | */ |
| 565 | 565 | private function doConnect($host, $port) { |