@@ -48,7 +48,7 @@ |
||
48 | 48 | /** |
49 | 49 | * Validate and decode a JSON Web Token string from a cookie |
50 | 50 | * |
51 | - * @param KeyAbstract|string $key the key to use to sign the token, or name of key to build |
|
51 | + * @param string $key the key to use to sign the token, or name of key to build |
|
52 | 52 | * @param string $cookieName name of cookie that sources the token |
53 | 53 | * @param array|\Traversable $assertClaims traversable set of claims, claim => value, to assert |
54 | 54 | * |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | /** |
166 | 166 | * Delete all permissions for an item and a specific name or array of names |
167 | 167 | * |
168 | - * @param string|string[] $gperm_name name(s) of the permission to delete |
|
168 | + * @param string $gperm_name name(s) of the permission to delete |
|
169 | 169 | * @param int $gperm_itemid id of the object to check |
170 | 170 | * |
171 | 171 | * @return bool true if no errors |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | * @param int $size size of list |
197 | 197 | * @param bool $multiple true to allow multiple selections |
198 | 198 | * |
199 | - * @return object XoopsFormSelectGroup |
|
199 | + * @return \XoopsFormSelectGroup XoopsFormSelectGroup |
|
200 | 200 | */ |
201 | 201 | public function getGroupSelectFormForItem( |
202 | 202 | $gperm_name, |
@@ -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 | { |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | /** |
75 | 75 | * Get a reference to the only instance of this class |
76 | 76 | * |
77 | - * @return object XoopsLogger reference to the only instance |
|
77 | + * @return XoopsLogger XoopsLogger reference to the only instance |
|
78 | 78 | */ |
79 | 79 | public static function getInstance() |
80 | 80 | { |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | /** |
262 | 262 | * Determine if an object implements Throwable (or is an Exception that would under PHP 7.) |
263 | 263 | * |
264 | - * @param mixed $e Expected to be an object related to Exception or Throwable |
|
264 | + * @param Throwable $e Expected to be an object related to Exception or Throwable |
|
265 | 265 | * |
266 | 266 | * @return bool true if related to Throwable or Exception, otherwise false |
267 | 267 | */ |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * |
278 | 278 | * @param string $path |
279 | 279 | * |
280 | - * @return mixed|string |
|
280 | + * @return string |
|
281 | 281 | */ |
282 | 282 | public function sanitizePath($path) |
283 | 283 | { |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | * @param $errFile |
437 | 437 | * @param $errLine |
438 | 438 | * @param null $errContext |
439 | - * @return bool |
|
439 | + * @return boolean|null |
|
440 | 440 | */ |
441 | 441 | function XoopsErrorHandler_HandleError($errNo, $errStr, $errFile, $errLine, $errContext = null) |
442 | 442 | { |
@@ -200,7 +200,7 @@ |
||
200 | 200 | * Connect to a POP3 server. |
201 | 201 | * @access public |
202 | 202 | * @param string $host |
203 | - * @param integer|boolean $port |
|
203 | + * @param integer $port |
|
204 | 204 | * @param integer $tval |
205 | 205 | * @return boolean |
206 | 206 | */ |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * @param string $table_link table of linked object for JOIN; deprecated, for backward compatibility |
44 | 44 | * @param string $field_link field of linked object for JOIN; deprecated, for backward compatibility |
45 | 45 | * @param string $field_object field of current object for JOIN; deprecated, for backward compatibility |
46 | - * @return bool true on success |
|
46 | + * @return null|boolean true on success |
|
47 | 47 | */ |
48 | 48 | public function cleanOrphan($table_link = '', $field_link = '', $field_object = '') |
49 | 49 | { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * Synchronizing objects |
84 | 84 | * @deprecated |
85 | 85 | * |
86 | - * @return bool true on success |
|
86 | + * @return null|boolean true on success |
|
87 | 87 | */ |
88 | 88 | public function synchronization() |
89 | 89 | { |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | /** |
223 | 223 | * Access the only instance of this class |
224 | 224 | * |
225 | - * @return object |
|
225 | + * @return MyTextSanitizer |
|
226 | 226 | * @static |
227 | 227 | * @staticvar object |
228 | 228 | */ |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | * Replace XoopsCodes with their equivalent HTML formatting |
396 | 396 | * |
397 | 397 | * @param string $text |
398 | - * @param bool|int $allowimage Allow images in the text? |
|
398 | + * @param integer $allowimage Allow images in the text? |
|
399 | 399 | * On FALSE, uses links to images. |
400 | 400 | * @return string |
401 | 401 | */ |
@@ -481,7 +481,7 @@ discard block |
||
481 | 481 | * A quick solution for filtering XSS scripts |
482 | 482 | * |
483 | 483 | * @TODO : To be improved |
484 | - * @param $text |
|
484 | + * @param string $text |
|
485 | 485 | * @return mixed |
486 | 486 | */ |
487 | 487 | public function filterXss($text) |
@@ -577,11 +577,11 @@ discard block |
||
577 | 577 | * Filters textarea form data in DB for display |
578 | 578 | * |
579 | 579 | * @param string $text |
580 | - * @param bool|int $html allow html? |
|
581 | - * @param bool|int $smiley allow smileys? |
|
582 | - * @param bool|int $xcode allow xoopscode? |
|
583 | - * @param bool|int $image allow inline images? |
|
584 | - * @param bool|int $br convert linebreaks? |
|
580 | + * @param integer $html allow html? |
|
581 | + * @param integer $smiley allow smileys? |
|
582 | + * @param integer $xcode allow xoopscode? |
|
583 | + * @param integer $image allow inline images? |
|
584 | + * @param integer $br convert linebreaks? |
|
585 | 585 | * @return string |
586 | 586 | */ |
587 | 587 | public function &displayTarea($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1) |
@@ -625,11 +625,11 @@ discard block |
||
625 | 625 | * Filters textarea form data submitted for preview |
626 | 626 | * |
627 | 627 | * @param string $text |
628 | - * @param bool|int $html allow html? |
|
629 | - * @param bool|int $smiley allow smileys? |
|
630 | - * @param bool|int $xcode allow xoopscode? |
|
631 | - * @param bool|int $image allow inline images? |
|
632 | - * @param bool|int $br convert linebreaks? |
|
628 | + * @param integer $html allow html? |
|
629 | + * @param integer $smiley allow smileys? |
|
630 | + * @param integer $xcode allow xoopscode? |
|
631 | + * @param integer $image allow inline images? |
|
632 | + * @param integer $br convert linebreaks? |
|
633 | 633 | * @return string |
634 | 634 | */ |
635 | 635 | public function &previewTarea($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1) |
@@ -661,7 +661,7 @@ discard block |
||
661 | 661 | * MyTextSanitizer::codePreConv() |
662 | 662 | * |
663 | 663 | * @param mixed $text |
664 | - * @param mixed $xcode |
|
664 | + * @param integer $xcode |
|
665 | 665 | * @return mixed |
666 | 666 | */ |
667 | 667 | public function codePreConv($text, $xcode = 1) |
@@ -697,8 +697,8 @@ discard block |
||
697 | 697 | * MyTextSanitizer::codeConv() |
698 | 698 | * |
699 | 699 | * @param mixed $text |
700 | - * @param mixed $xcode |
|
701 | - * @return mixed |
|
700 | + * @param integer $xcode |
|
701 | + * @return string |
|
702 | 702 | */ |
703 | 703 | public function codeConv($text, $xcode = 1) |
704 | 704 | { |
@@ -714,7 +714,7 @@ discard block |
||
714 | 714 | /** |
715 | 715 | * MyTextSanitizer::executeExtensions() |
716 | 716 | * |
717 | - * @return bool |
|
717 | + * @return boolean|null |
|
718 | 718 | */ |
719 | 719 | public function executeExtensions() |
720 | 720 | { |
@@ -799,8 +799,8 @@ discard block |
||
799 | 799 | * MyTextSanitizer::codeSanitizer() |
800 | 800 | * |
801 | 801 | * @param mixed $str |
802 | - * @param mixed $image |
|
803 | - * @return mixed|string |
|
802 | + * @param integer $image |
|
803 | + * @return string |
|
804 | 804 | */ |
805 | 805 | public function codeSanitizer($str, $image = 1) |
806 | 806 | { |
@@ -817,8 +817,8 @@ discard block |
||
817 | 817 | * @param mixed $text |
818 | 818 | * @param integer $allowhtml |
819 | 819 | * @param integer $smiley |
820 | - * @param mixed $bbcode |
|
821 | - * @return mixed|string |
|
820 | + * @param integer $bbcode |
|
821 | + * @return string |
|
822 | 822 | */ |
823 | 823 | public function sanitizeForDisplay($text, $allowhtml = 0, $smiley = 1, $bbcode = 1) |
824 | 824 | { |
@@ -848,8 +848,8 @@ discard block |
||
848 | 848 | * @param mixed $text |
849 | 849 | * @param integer $allowhtml |
850 | 850 | * @param integer $smiley |
851 | - * @param mixed $bbcode |
|
852 | - * @return mixed|string |
|
851 | + * @param integer $bbcode |
|
852 | + * @return string |
|
853 | 853 | */ |
854 | 854 | public function sanitizeForPreview($text, $allowhtml = 0, $smiley = 1, $bbcode = 1) |
855 | 855 | { |
@@ -892,8 +892,8 @@ discard block |
||
892 | 892 | * MyTextSanitizer::makeTboxData4Show() |
893 | 893 | * |
894 | 894 | * @param mixed $text |
895 | - * @param mixed $smiley |
|
896 | - * @return mixed|string |
|
895 | + * @param integer $smiley |
|
896 | + * @return string |
|
897 | 897 | */ |
898 | 898 | public function makeTboxData4Show($text, $smiley = 0) |
899 | 899 | { |
@@ -920,8 +920,8 @@ discard block |
||
920 | 920 | * MyTextSanitizer::makeTboxData4Preview() |
921 | 921 | * |
922 | 922 | * @param mixed $text |
923 | - * @param mixed $smiley |
|
924 | - * @return mixed|string |
|
923 | + * @param integer $smiley |
|
924 | + * @return string |
|
925 | 925 | */ |
926 | 926 | public function makeTboxData4Preview($text, $smiley = 0) |
927 | 927 | { |
@@ -965,8 +965,8 @@ discard block |
||
965 | 965 | * @param mixed $text |
966 | 966 | * @param integer $html |
967 | 967 | * @param integer $smiley |
968 | - * @param mixed $xcode |
|
969 | - * @return mixed|string |
|
968 | + * @param integer $xcode |
|
969 | + * @return string |
|
970 | 970 | */ |
971 | 971 | public function &makeTareaData4Show(&$text, $html = 1, $smiley = 1, $xcode = 1) |
972 | 972 | { |
@@ -995,8 +995,8 @@ discard block |
||
995 | 995 | * @param mixed $text |
996 | 996 | * @param integer $html |
997 | 997 | * @param integer $smiley |
998 | - * @param mixed $xcode |
|
999 | - * @return mixed|string |
|
998 | + * @param integer $xcode |
|
999 | + * @return string |
|
1000 | 1000 | */ |
1001 | 1001 | public function &makeTareaData4Preview(&$text, $html = 1, $smiley = 1, $xcode = 1) |
1002 | 1002 | { |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | * Get all global or section variable names. |
190 | 190 | * |
191 | 191 | * @param string $file_name config file to get info for |
192 | - * @param string $section_name (optional) section to get info for |
|
192 | + * @param string $section (optional) section to get info for |
|
193 | 193 | * @return array an array of variables names from the specified file/section |
194 | 194 | */ |
195 | 195 | function get_var_names($file_name, $section = NULL) |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | /** |
346 | 346 | * @param array &$container |
347 | 347 | * @param string $var_name |
348 | - * @param mixed $var_value |
|
348 | + * @param string $var_value |
|
349 | 349 | * @param boolean $booleanize determines whether $var_value is converted to |
350 | 350 | * to true/false |
351 | 351 | */ |
@@ -8,8 +8,7 @@ |
||
8 | 8 | /** |
9 | 9 | * assemble filepath of requested plugin |
10 | 10 | * |
11 | - * @param string $type |
|
12 | - * @param string $name |
|
11 | + * @param Smarty $smarty |
|
13 | 12 | * @return string|false |
14 | 13 | */ |
15 | 14 | function smarty_core_assemble_plugin_filepath($params, &$smarty) |