@@ -68,7 +68,7 @@ |
||
68 | 68 | /** |
69 | 69 | * return the errors for this object as an array |
70 | 70 | * |
71 | - * @return array an array of errors |
|
71 | + * @return string[] an array of errors |
|
72 | 72 | * @access public |
73 | 73 | */ |
74 | 74 | public function getErrors() |
@@ -108,9 +108,9 @@ |
||
108 | 108 | * looks like an email address. Very useful for logging on especially in |
109 | 109 | * a large Forest. Note UPN must be unique in the forest. |
110 | 110 | * |
111 | - * @param $uname |
|
111 | + * @param string $uname |
|
112 | 112 | * |
113 | - * @return userDN or false |
|
113 | + * @return string or false |
|
114 | 114 | */ |
115 | 115 | public function getUPN($uname) |
116 | 116 | { |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | /** |
191 | 191 | * XoopsAuthLdap::cp1252_to_utf8() |
192 | 192 | * |
193 | - * @param mixed $str |
|
193 | + * @param string $str |
|
194 | 194 | * |
195 | 195 | * @return string |
196 | 196 | */ |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | /** |
251 | 251 | * Compose the user DN with the configuration. |
252 | 252 | * |
253 | - * @param $uname |
|
253 | + * @param string $uname |
|
254 | 254 | * @return userDN or false |
255 | 255 | */ |
256 | 256 | public function getUserDN($uname) |
@@ -300,8 +300,8 @@ discard block |
||
300 | 300 | * XoopsAuthLdap::loadXoopsUser() |
301 | 301 | * |
302 | 302 | * @param mixed $userdn |
303 | - * @param mixed $uname |
|
304 | - * @param mixed $pwd |
|
303 | + * @param string $uname |
|
304 | + * @param string|null $pwd |
|
305 | 305 | * @return bool |
306 | 306 | */ |
307 | 307 | public function loadXoopsUser($userdn, $uname, $pwd = null) |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * XoopsAuthProvisionning::getInstance() |
36 | 36 | * |
37 | - * @param mixed $auth_instance |
|
37 | + * @param null|XoopsAuth $auth_instance |
|
38 | 38 | * |
39 | 39 | * @return \XoopsAuthProvisionning |
40 | 40 | */ |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * Modify user information |
162 | 162 | * |
163 | - * @param $xoopsUser |
|
163 | + * @param XoopsUser $xoopsUser |
|
164 | 164 | * @param $datas |
165 | 165 | * @param $uname |
166 | 166 | * @param null $pwd |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | /** |
192 | 192 | * Modify a user |
193 | 193 | * |
194 | - * @return bool |
|
194 | + * @return boolean|null |
|
195 | 195 | */ |
196 | 196 | public function delete() |
197 | 197 | { |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | /** |
201 | 201 | * Suspend a user |
202 | 202 | * |
203 | - * @return bool |
|
203 | + * @return boolean|null |
|
204 | 204 | */ |
205 | 205 | public function suspend() |
206 | 206 | { |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | /** |
210 | 210 | * Restore a user |
211 | 211 | * |
212 | - * @return bool |
|
212 | + * @return boolean|null |
|
213 | 213 | */ |
214 | 214 | public function restore() |
215 | 215 | { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * Add a new user to the system |
220 | 220 | * |
221 | - * @return bool |
|
221 | + * @return boolean|null |
|
222 | 222 | */ |
223 | 223 | public function resetpwd() |
224 | 224 | { |
@@ -287,7 +287,7 @@ |
||
287 | 287 | * Get absolute file for a given key |
288 | 288 | * |
289 | 289 | * @param string $key The key |
290 | - * @return mixed Absolute cache file for the given key or false if erroneous |
|
290 | + * @return false|null Absolute cache file for the given key or false if erroneous |
|
291 | 291 | * @access private |
292 | 292 | */ |
293 | 293 | private function setKey($key) |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * Tries to find and include a file for a cache engine and returns object instance |
80 | 80 | * |
81 | 81 | * @param $name Name of the engine |
82 | - * @return mixed $engine object or null |
|
82 | + * @return boolean $engine object or null |
|
83 | 83 | * @access private |
84 | 84 | */ |
85 | 85 | private function loadEngine($name) |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | * |
207 | 207 | * @param string $key Identifier for the data |
208 | 208 | * @param mixed $value Data to be cached - anything except a resource |
209 | - * @param mixed $duration Optional - string configuration name OR how long to cache the data, either in seconds or a |
|
209 | + * @param string $duration Optional - string configuration name OR how long to cache the data, either in seconds or a |
|
210 | 210 | * string that can be parsed by the strtotime() function OR array('config' => 'default', 'duration' => '3600') |
211 | 211 | * @return boolean True if the data was successfully cached, false on failure |
212 | 212 | * @access public |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | * generates a safe key |
385 | 385 | * |
386 | 386 | * @param string $key the key passed over |
387 | - * @return mixed string $key or false |
|
387 | + * @return false|string string $key or false |
|
388 | 388 | * @access private |
389 | 389 | */ |
390 | 390 | public function key($key) |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | * @param string $key Identifier for the data |
450 | 450 | * @param mixed $value Data to be cached |
451 | 451 | * @param mixed $duration How long to cache the data, in seconds |
452 | - * @return boolean True if the data was successfully cached, false on failure |
|
452 | + * @return boolean|null True if the data was successfully cached, false on failure |
|
453 | 453 | * @access public |
454 | 454 | */ |
455 | 455 | public function write($key, $value, $duration = null) |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | * Delete a key from the cache |
474 | 474 | * |
475 | 475 | * @param string $key Identifier for the data |
476 | - * @return boolean True if the value was successfully deleted, false if it didn't exist or couldn't be removed |
|
476 | + * @return boolean|null True if the value was successfully deleted, false if it didn't exist or couldn't be removed |
|
477 | 477 | * @access public |
478 | 478 | */ |
479 | 479 | public function delete($key) |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | * Delete all keys from the cache |
485 | 485 | * |
486 | 486 | * @param boolean $check if true will check expiration, otherwise delete all |
487 | - * @return boolean True if the cache was successfully cleared, false otherwise |
|
487 | + * @return boolean|null True if the cache was successfully cleared, false otherwise |
|
488 | 488 | * @access public |
489 | 489 | */ |
490 | 490 | public function clear($check) |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | /** |
495 | 495 | * Cache Engine settings |
496 | 496 | * |
497 | - * @return array settings |
|
497 | + * @return integer settings |
|
498 | 498 | * @access public |
499 | 499 | */ |
500 | 500 | public function settings() |
@@ -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 | { |
@@ -211,6 +211,9 @@ discard block |
||
211 | 211 | |
212 | 212 | /* Mailhide related code */ |
213 | 213 | |
214 | +/** |
|
215 | + * @param string $ky |
|
216 | + */ |
|
214 | 217 | function _recaptcha_aes_encrypt($val,$ky) { |
215 | 218 | if (! function_exists ("mcrypt_encrypt")) { |
216 | 219 | die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); |
@@ -222,6 +225,9 @@ discard block |
||
222 | 225 | } |
223 | 226 | |
224 | 227 | |
228 | +/** |
|
229 | + * @param null|string $x |
|
230 | + */ |
|
225 | 231 | function _recaptcha_mailhide_urlbase64 ($x) { |
226 | 232 | return strtr(base64_encode ($x), '+/', '-_'); |
227 | 233 | } |
@@ -68,7 +68,7 @@ |
||
68 | 68 | /** |
69 | 69 | * XoopsCaptcha::loadConfig() |
70 | 70 | * |
71 | - * @param mixed $filename |
|
71 | + * @param string $filename |
|
72 | 72 | * |
73 | 73 | * @return array |
74 | 74 | */ |