@@ -69,7 +69,7 @@ |
||
69 | 69 | /** |
70 | 70 | * return the errors for this object as an array |
71 | 71 | * |
72 | - * @return array an array of errors |
|
72 | + * @return string[] an array of errors |
|
73 | 73 | * @access public |
74 | 74 | */ |
75 | 75 | public function getErrors() |
@@ -110,9 +110,9 @@ |
||
110 | 110 | * looks like an email address. Very useful for logging on especially in |
111 | 111 | * a large Forest. Note UPN must be unique in the forest. |
112 | 112 | * |
113 | - * @param $uname |
|
113 | + * @param string $uname |
|
114 | 114 | * |
115 | - * @return userDN or false |
|
115 | + * @return string or false |
|
116 | 116 | */ |
117 | 117 | public function getUPN($uname) |
118 | 118 | { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | /** |
192 | 192 | * XoopsAuthLdap::cp1252_to_utf8() |
193 | 193 | * |
194 | - * @param mixed $str |
|
194 | + * @param string $str |
|
195 | 195 | * |
196 | 196 | * @return string |
197 | 197 | */ |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | /** |
252 | 252 | * Compose the user DN with the configuration. |
253 | 253 | * |
254 | - * @param $uname |
|
254 | + * @param string $uname |
|
255 | 255 | * @return userDN or false |
256 | 256 | */ |
257 | 257 | public function getUserDN($uname) |
@@ -301,8 +301,8 @@ discard block |
||
301 | 301 | * XoopsAuthLdap::loadXoopsUser() |
302 | 302 | * |
303 | 303 | * @param mixed $userdn |
304 | - * @param mixed $uname |
|
305 | - * @param mixed $pwd |
|
304 | + * @param string $uname |
|
305 | + * @param string|null $pwd |
|
306 | 306 | * @return bool |
307 | 307 | */ |
308 | 308 | public function loadXoopsUser($userdn, $uname, $pwd = null) |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | /** |
36 | 36 | * XoopsAuthProvisionning::getInstance() |
37 | 37 | * |
38 | - * @param mixed $auth_instance |
|
38 | + * @param null|XoopsAuth $auth_instance |
|
39 | 39 | * |
40 | 40 | * @return \XoopsAuthProvisionning |
41 | 41 | */ |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | /** |
159 | 159 | * Modify user information |
160 | 160 | * |
161 | - * @param $xoopsUser |
|
161 | + * @param XoopsUser $xoopsUser |
|
162 | 162 | * @param $datas |
163 | 163 | * @param $uname |
164 | 164 | * @param null $pwd |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | /** |
189 | 189 | * Modify a user |
190 | 190 | * |
191 | - * @return bool |
|
191 | + * @return boolean|null |
|
192 | 192 | */ |
193 | 193 | public function delete() |
194 | 194 | { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | /** |
198 | 198 | * Suspend a user |
199 | 199 | * |
200 | - * @return bool |
|
200 | + * @return boolean|null |
|
201 | 201 | */ |
202 | 202 | public function suspend() |
203 | 203 | { |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | /** |
207 | 207 | * Restore a user |
208 | 208 | * |
209 | - * @return bool |
|
209 | + * @return boolean|null |
|
210 | 210 | */ |
211 | 211 | public function restore() |
212 | 212 | { |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | /** |
216 | 216 | * Add a new user to the system |
217 | 217 | * |
218 | - * @return bool |
|
218 | + * @return boolean|null |
|
219 | 219 | */ |
220 | 220 | public function resetpwd() |
221 | 221 | { |
@@ -288,7 +288,7 @@ |
||
288 | 288 | * Get absolute file for a given key |
289 | 289 | * |
290 | 290 | * @param string $key The key |
291 | - * @return mixed Absolute cache file for the given key or false if erroneous |
|
291 | + * @return false|null Absolute cache file for the given key or false if erroneous |
|
292 | 292 | * @access private |
293 | 293 | */ |
294 | 294 | private function setKey($key) |
@@ -231,7 +231,7 @@ |
||
231 | 231 | /** |
232 | 232 | * Return random background |
233 | 233 | * |
234 | - * @return array |
|
234 | + * @return string|null |
|
235 | 235 | */ |
236 | 236 | public function loadBackground() |
237 | 237 | { |
@@ -210,9 +210,9 @@ |
||
210 | 210 | /** |
211 | 211 | * Add an element |
212 | 212 | * |
213 | - * @param CriteriaElement|object $criteriaElement |
|
213 | + * @param CriteriaElement $criteriaElement |
|
214 | 214 | * @param string $condition |
215 | - * @return object reference to this collection |
|
215 | + * @return CriteriaCompo reference to this collection |
|
216 | 216 | */ |
217 | 217 | public function &add(CriteriaElement $criteriaElement, $condition = 'AND') |
218 | 218 | { |
@@ -404,7 +404,7 @@ |
||
404 | 404 | /** |
405 | 405 | * Get md5 Checksum of file with previous check of Filesize |
406 | 406 | * |
407 | - * @param mixed $maxsize in MB or true to force |
|
407 | + * @param integer $maxsize in MB or true to force |
|
408 | 408 | * @return string md5 Checksum {@link http://php.net/md5_file See md5_file()} |
409 | 409 | * @access public |
410 | 410 | */ |
@@ -341,6 +341,10 @@ |
||
341 | 341 | return $file; |
342 | 342 | } |
343 | 343 | |
344 | + /** |
|
345 | + * @param string $class |
|
346 | + * @param string $ext |
|
347 | + */ |
|
344 | 348 | private function findFileWithExtension($class, $ext) |
345 | 349 | { |
346 | 350 | // PSR-4 lookup |