@@ -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) |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | * Tries to find and include a file for a cache engine and returns object instance |
| 81 | 81 | * |
| 82 | 82 | * @param $name Name of the engine |
| 83 | - * @return mixed $engine object or null |
|
| 83 | + * @return boolean $engine object or null |
|
| 84 | 84 | * @access private |
| 85 | 85 | */ |
| 86 | 86 | private function loadEngine($name) |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | * |
| 208 | 208 | * @param string $key Identifier for the data |
| 209 | 209 | * @param mixed $value Data to be cached - anything except a resource |
| 210 | - * @param mixed $duration Optional - string configuration name OR how long to cache the data, either in seconds or a |
|
| 210 | + * @param string $duration Optional - string configuration name OR how long to cache the data, either in seconds or a |
|
| 211 | 211 | * string that can be parsed by the strtotime() function OR array('config' => 'default', 'duration' => '3600') |
| 212 | 212 | * @return boolean True if the data was successfully cached, false on failure |
| 213 | 213 | * @access public |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | * generates a safe key |
| 386 | 386 | * |
| 387 | 387 | * @param string $key the key passed over |
| 388 | - * @return mixed string $key or false |
|
| 388 | + * @return false|string string $key or false |
|
| 389 | 389 | * @access private |
| 390 | 390 | */ |
| 391 | 391 | public function key($key) |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | * @param string $key Identifier for the data |
| 451 | 451 | * @param mixed $value Data to be cached |
| 452 | 452 | * @param mixed $duration How long to cache the data, in seconds |
| 453 | - * @return boolean True if the data was successfully cached, false on failure |
|
| 453 | + * @return boolean|null True if the data was successfully cached, false on failure |
|
| 454 | 454 | * @access public |
| 455 | 455 | */ |
| 456 | 456 | public function write($key, $value = null, $duration = null) |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | * Delete a key from the cache |
| 475 | 475 | * |
| 476 | 476 | * @param string $key Identifier for the data |
| 477 | - * @return boolean True if the value was successfully deleted, false if it didn't exist or couldn't be removed |
|
| 477 | + * @return boolean|null True if the value was successfully deleted, false if it didn't exist or couldn't be removed |
|
| 478 | 478 | * @access public |
| 479 | 479 | */ |
| 480 | 480 | public function delete($key) |
@@ -485,7 +485,7 @@ discard block |
||
| 485 | 485 | * Delete all keys from the cache |
| 486 | 486 | * |
| 487 | 487 | * @param boolean $check if true will check expiration, otherwise delete all |
| 488 | - * @return boolean True if the cache was successfully cleared, false otherwise |
|
| 488 | + * @return boolean|null True if the cache was successfully cleared, false otherwise |
|
| 489 | 489 | * @access public |
| 490 | 490 | */ |
| 491 | 491 | public function clear($check) |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | /** |
| 496 | 496 | * Cache Engine settings |
| 497 | 497 | * |
| 498 | - * @return array settings |
|
| 498 | + * @return integer settings |
|
| 499 | 499 | * @access public |
| 500 | 500 | */ |
| 501 | 501 | 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 | { |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | |
| 216 | 216 | /** |
| 217 | 217 | * @param $val |
| 218 | - * @param $ky |
|
| 218 | + * @param string $ky |
|
| 219 | 219 | * |
| 220 | 220 | * @return string |
| 221 | 221 | */ |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | } |
| 233 | 233 | |
| 234 | 234 | /** |
| 235 | - * @param $x |
|
| 235 | + * @param null|string $x |
|
| 236 | 236 | * |
| 237 | 237 | * @return string |
| 238 | 238 | */ |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | * eg, given johndoe@example,com return ["john", "example.com"]. |
| 267 | 267 | * the email is then displayed as [email protected] |
| 268 | 268 | * @param $email |
| 269 | - * @return array |
|
| 269 | + * @return string[] |
|
| 270 | 270 | */ |
| 271 | 271 | function _recaptcha_mailhide_email_parts($email) |
| 272 | 272 | { |
@@ -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 | { |