@@ -306,7 +306,7 @@ |
||
306 | 306 | /** |
307 | 307 | * Transform file to xml |
308 | 308 | * |
309 | - * @param mixed $data |
|
309 | + * @param string $data |
|
310 | 310 | * @return mixed |
311 | 311 | */ |
312 | 312 | public function toFile($data) { |
@@ -145,7 +145,7 @@ |
||
145 | 145 | * Reopen the file with open() again if you want to do additional operations |
146 | 146 | * |
147 | 147 | * @param string $outdir the target directory for extracting |
148 | - * @param int|string $strip either the number of path components or a fixed prefix to strip |
|
148 | + * @param string $strip either the number of path components or a fixed prefix to strip |
|
149 | 149 | * @param string $exclude a regular expression of files to exclude |
150 | 150 | * @param string $include a regular expression of files to include |
151 | 151 | * @throws TarIOException |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * @param string $user Username |
184 | 184 | * @param string $pass Cleartext Password |
185 | 185 | * @param bool $sticky Cookie should not expire |
186 | - * @return bool true on successful auth |
|
186 | + * @return boolean|null true on successful auth |
|
187 | 187 | */ |
188 | 188 | public function trustExternal($user, $pass, $sticky = false) { |
189 | 189 | /* some example: |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | * @author Andreas Gohr <[email protected]> |
239 | 239 | * @param string $user the user name |
240 | 240 | * @param bool $requireGroups whether or not the returned data must include groups |
241 | - * @return false|array containing user data or false |
|
241 | + * @return boolean containing user data or false |
|
242 | 242 | */ |
243 | 243 | public function getUserData($user, $requireGroups=true) { |
244 | 244 | if(!$this->cando['external']) msg("no valid authorisation system in use", -1); |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | * |
292 | 292 | * @author Chris Smith <[email protected]> |
293 | 293 | * @param array $users |
294 | - * @return int number of users deleted |
|
294 | + * @return boolean number of users deleted |
|
295 | 295 | */ |
296 | 296 | public function deleteUsers($users) { |
297 | 297 | msg("authorisation method does not allow deleting of users", -1); |
@@ -421,7 +421,7 @@ |
||
421 | 421 | * domain if no current one is available. |
422 | 422 | * |
423 | 423 | * @param string|null $domain The AD domain to use |
424 | - * @return adLDAP|bool true if a connection was established |
|
424 | + * @return string true if a connection was established |
|
425 | 425 | */ |
426 | 426 | protected function _adldap($domain) { |
427 | 427 | if(is_null($domain) && is_array($this->opts)) { |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * @author Andreas Gohr <[email protected]> |
83 | 83 | * @param string $user |
84 | 84 | * @param bool $requireGroups (optional) ignored by this plugin, grps info always supplied |
85 | - * @return array|false |
|
85 | + * @return string |
|
86 | 86 | */ |
87 | 87 | public function getUserData($user, $requireGroups=true) { |
88 | 88 | if($this->users === null) $this->_loadUserData(); |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | * Remove one or more users from the list of registered users |
206 | 206 | * |
207 | 207 | * @author Christopher Smith <[email protected]> |
208 | - * @param array $users array of users to be deleted |
|
208 | + * @param string[] $users array of users to be deleted |
|
209 | 209 | * @return int the number of users deleted |
210 | 210 | */ |
211 | 211 | public function deleteUsers($users) { |
@@ -347,6 +347,9 @@ discard block |
||
347 | 347 | } |
348 | 348 | } |
349 | 349 | |
350 | + /** |
|
351 | + * @param string $line |
|
352 | + */ |
|
350 | 353 | protected function _splitUserData($line){ |
351 | 354 | // due to a bug in PCRE 6.6, preg_split will fail with the regex we use here |
352 | 355 | // refer github issues 877 & 885 |