@@ -119,6 +119,16 @@ |
||
119 | 119 | $this->assertEquals($expected, $this->ocs->getShare(42)); |
120 | 120 | } |
121 | 121 | |
122 | + /** |
|
123 | + * @param integer $id |
|
124 | + * @param integer $permissions |
|
125 | + * @param integer $shareTime |
|
126 | + * @param integer $parent |
|
127 | + * @param string $target |
|
128 | + * @param integer $mail_send |
|
129 | + * @param string $token |
|
130 | + * @param string $password |
|
131 | + */ |
|
122 | 132 | public function createShare($id, $shareType, $sharedWith, $sharedBy, $path, $permissions, |
123 | 133 | $shareTime, $expiration, $parent, $target, $mail_send, $token=null, |
124 | 134 | $password=null) { |
@@ -73,8 +73,6 @@ |
||
73 | 73 | /** |
74 | 74 | * save the configuration value as provided |
75 | 75 | * @param string $configID |
76 | - * @param string $configKey |
|
77 | - * @param string $configValue |
|
78 | 76 | */ |
79 | 77 | protected function setValue($configID, $key, $value) { |
80 | 78 | $configHolder = new Configuration($configID); |
@@ -281,7 +281,6 @@ |
||
281 | 281 | * |
282 | 282 | * @param string $varName name of config-key |
283 | 283 | * @param array|string $value to set |
284 | - * @param boolean $trim Trim value? (default: false) |
|
285 | 284 | */ |
286 | 285 | protected function setMultiLine($varName, $value) { |
287 | 286 | if(empty($value)) { |
@@ -68,7 +68,7 @@ |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
71 | - * @return int |
|
71 | + * @return string |
|
72 | 72 | */ |
73 | 73 | static private function getRefreshInterval() { |
74 | 74 | //defaults to every hour |
@@ -864,7 +864,7 @@ discard block |
||
864 | 864 | * @param integer $filterType int, for which use case the filter shall be created |
865 | 865 | * can be any of self::LFILTER_USER_LIST, self::LFILTER_LOGIN or |
866 | 866 | * self::LFILTER_GROUP_LIST |
867 | - * @return string|false string with the filter on success, false otherwise |
|
867 | + * @return string string with the filter on success, false otherwise |
|
868 | 868 | * @throws \Exception |
869 | 869 | */ |
870 | 870 | private function composeLdapFilter($filterType) { |
@@ -1107,7 +1107,7 @@ discard block |
||
1107 | 1107 | } |
1108 | 1108 | |
1109 | 1109 | /** |
1110 | - * @param array $reqs |
|
1110 | + * @param string[] $reqs |
|
1111 | 1111 | * @return bool |
1112 | 1112 | */ |
1113 | 1113 | private function checkRequirements($reqs) { |
@@ -21,7 +21,6 @@ |
||
21 | 21 | |
22 | 22 | namespace OCA\user_ldap\tests\integration\lib; |
23 | 23 | |
24 | -use OCA\user_ldap\lib\user\Manager as LDAPUserManager; |
|
25 | 24 | use OCA\user_ldap\tests\integration\AbstractIntegrationTest; |
26 | 25 | use OCA\User_LDAP\Mapping\UserMapping; |
27 | 26 | use OCA\user_ldap\USER_LDAP; |
@@ -149,8 +149,8 @@ |
||
149 | 149 | * Get a list of all users |
150 | 150 | * |
151 | 151 | * @param string $search |
152 | - * @param null|int $limit |
|
153 | - * @param null|int $offset |
|
152 | + * @param integer $limit |
|
153 | + * @param integer $offset |
|
154 | 154 | * @return string[] an array of all uids |
155 | 155 | */ |
156 | 156 | public function getUsers($search = '', $limit = 10, $offset = 0) { |
@@ -118,6 +118,9 @@ discard block |
||
118 | 118 | echo "License updated: $path" . PHP_EOL; |
119 | 119 | } |
120 | 120 | |
121 | + /** |
|
122 | + * @param string $source |
|
123 | + */ |
|
121 | 124 | private function isMITLicensed($source) { |
122 | 125 | $lines = explode(PHP_EOL, $source); |
123 | 126 | while(!empty($lines)) { |
@@ -131,6 +134,9 @@ discard block |
||
131 | 134 | return false; |
132 | 135 | } |
133 | 136 | |
137 | + /** |
|
138 | + * @param string $source |
|
139 | + */ |
|
134 | 140 | private function eatOldLicense($source) { |
135 | 141 | $lines = explode(PHP_EOL, $source); |
136 | 142 | while(!empty($lines)) { |
@@ -131,7 +131,7 @@ |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
134 | - * @param $message |
|
134 | + * @param string $message |
|
135 | 135 | * @param array $additional |
136 | 136 | * @return array |
137 | 137 | */ |