@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * @param integer $inline Nesting level where you switch to inline YAML |
45 | 45 | * @param integer $indent Number of spaces to indent for nested nodes |
46 | 46 | * |
47 | - * @return string|bool YAML string or false on error |
|
47 | + * @return string|false YAML string or false on error |
|
48 | 48 | */ |
49 | 49 | public static function dump($var, $inline = 4, $indent = 4) |
50 | 50 | { |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * @param integer $inline Nesting level where you switch to inline YAML |
129 | 129 | * @param integer $indent Number of spaces to indent for nested nodes |
130 | 130 | * |
131 | - * @return string|boolean YAML string or false on error |
|
131 | + * @return string|false YAML string or false on error |
|
132 | 132 | */ |
133 | 133 | public static function dumpWrapped($var, $inline = 4, $indent = 4) |
134 | 134 | { |
@@ -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 | */ |
@@ -332,7 +332,7 @@ |
||
332 | 332 | * @param array $thread |
333 | 333 | * @param int $key |
334 | 334 | * @param array $replies |
335 | - * @param string|int $prefix |
|
335 | + * @param integer $prefix |
|
336 | 336 | * @param bool $admin_view |
337 | 337 | * @param integer $depth |
338 | 338 | * @access private |
@@ -116,7 +116,7 @@ |
||
116 | 116 | class Database |
117 | 117 | { |
118 | 118 | /** |
119 | - * @return object |
|
119 | + * @return XoopsDatabase|null |
|
120 | 120 | */ |
121 | 121 | public function getInstance() |
122 | 122 | { |
@@ -72,6 +72,10 @@ discard block |
||
72 | 72 | * @param $isCaseFolding |
73 | 73 | * @returns void |
74 | 74 | ****************************************************************************/ |
75 | + |
|
76 | + /** |
|
77 | + * @param boolean $isCaseFolding |
|
78 | + */ |
|
75 | 79 | public function setCaseFolding($isCaseFolding) |
76 | 80 | { |
77 | 81 | assert(is_bool($isCaseFolding)); |
@@ -338,8 +342,8 @@ discard block |
||
338 | 342 | * The default tag handler method for a tag with no handler |
339 | 343 | * |
340 | 344 | * @abstract |
341 | - * @param $parser |
|
342 | - * @param $tagName |
|
345 | + * @param integer $parser |
|
346 | + * @param string $tagName |
|
343 | 347 | * @param $attributesArray |
344 | 348 | */ |
345 | 349 | public function handleBeginElementDefault($parser, $tagName, $attributesArray) |
@@ -350,8 +354,8 @@ discard block |
||
350 | 354 | * The default tag handler method for a tag with no handler |
351 | 355 | * |
352 | 356 | * @abstract |
353 | - * @param $parser |
|
354 | - * @param $tagName |
|
357 | + * @param integer $parser |
|
358 | + * @param string $tagName |
|
355 | 359 | */ |
356 | 360 | public function handleEndElementDefault($parser, $tagName) |
357 | 361 | { |
@@ -361,8 +365,8 @@ discard block |
||
361 | 365 | * The default tag handler method for a tag with no handler |
362 | 366 | * |
363 | 367 | * @abstract |
364 | - * @param $parser |
|
365 | - * @param $data |
|
368 | + * @param integer $parser |
|
369 | + * @param string $data |
|
366 | 370 | */ |
367 | 371 | public function handleCharacterDataDefault($parser, $data) |
368 | 372 | { |
@@ -371,7 +375,7 @@ discard block |
||
371 | 375 | /** |
372 | 376 | * Sets error messages |
373 | 377 | * |
374 | - * @param $error string an error message |
|
378 | + * @param string $error string an error message |
|
375 | 379 | */ |
376 | 380 | public function setErrors($error) |
377 | 381 | { |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | /** |
291 | 291 | * XoopsBlock::getOptions() |
292 | 292 | * |
293 | - * @return bool |
|
293 | + * @return string |
|
294 | 294 | */ |
295 | 295 | public function getOptions() |
296 | 296 | { |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | * 4: centerblock - right |
334 | 334 | * 5: centerblock - center |
335 | 335 | * 6: centerblock - left, right, center |
336 | - * @param $visible 0: not visible 1: visible |
|
336 | + * @param integer $visible 0: not visible 1: visible |
|
337 | 337 | * @param string $orderby order of the blocks |
338 | 338 | * @param int $isactive |
339 | 339 | * @returns array of block objects |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | * XoopsBlock::getByModule() |
461 | 461 | * |
462 | 462 | * @param mixed $moduleid |
463 | - * @param mixed $asobject |
|
463 | + * @param boolean $asobject |
|
464 | 464 | * @return array |
465 | 465 | */ |
466 | 466 | public static function getByModule($moduleid, $asobject = true) |
@@ -490,8 +490,8 @@ discard block |
||
490 | 490 | * |
491 | 491 | * @param mixed $groupid |
492 | 492 | * @param integer $module_id |
493 | - * @param mixed $toponlyblock |
|
494 | - * @param mixed $visible |
|
493 | + * @param boolean $toponlyblock |
|
494 | + * @param integer $visible |
|
495 | 495 | * @param string $orderby |
496 | 496 | * @param integer $isactive |
497 | 497 | * @return array |
@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * XoopsLocalAbstract::substr() |
28 | 28 | * |
29 | - * @param mixed $str |
|
30 | - * @param mixed $start |
|
31 | - * @param mixed $length |
|
29 | + * @param string $str |
|
30 | + * @param integer $start |
|
31 | + * @param integer $length |
|
32 | 32 | * @param string $trimmarker |
33 | 33 | * |
34 | 34 | * @return mixed|string |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * @param mixed $text |
71 | 71 | * @param string $to |
72 | 72 | * @param string $from |
73 | - * @return mixed|string |
|
73 | + * @return string |
|
74 | 74 | */ |
75 | 75 | public static function convert_encoding($text, $to = 'utf-8', $from = '') |
76 | 76 | { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | public $comments; |
54 | 54 | |
55 | 55 | /** |
56 | - * @param int|array $storyid |
|
56 | + * @param integer $storyid |
|
57 | 57 | */ |
58 | 58 | public function Story($storyid = -1) |
59 | 59 | { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | } |
267 | 267 | |
268 | 268 | /** |
269 | - * @param $storyid |
|
269 | + * @param integer $storyid |
|
270 | 270 | */ |
271 | 271 | public function getStory($storyid) |
272 | 272 | { |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | /** |
357 | 357 | * @param string $format |
358 | 358 | * |
359 | - * @return mixed |
|
359 | + * @return string |
|
360 | 360 | */ |
361 | 361 | public function title($format = 'Show') |
362 | 362 | { |