@@ -39,7 +39,7 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * @param $sql |
|
42 | + * @param string $sql |
|
43 | 43 | */ |
44 | 44 | public function query($sql) |
45 | 45 | { |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | } |
234 | 234 | |
235 | 235 | /** |
236 | - * @param $task |
|
236 | + * @param string $task |
|
237 | 237 | * |
238 | 238 | * @return bool |
239 | 239 | */ |
@@ -253,10 +253,10 @@ discard block |
||
253 | 253 | } |
254 | 254 | |
255 | 255 | /** |
256 | - * @param $charset |
|
256 | + * @param string $charset |
|
257 | 257 | * @param $collation |
258 | 258 | * |
259 | - * @return bool |
|
259 | + * @return false|null |
|
260 | 260 | */ |
261 | 261 | public function convert_db($charset, $collation) |
262 | 262 | { |
@@ -221,11 +221,11 @@ |
||
221 | 221 | * Write-enable the specified file/folder |
222 | 222 | * |
223 | 223 | * @param string $path |
224 | - * @param bool|string $group |
|
224 | + * @param boolean $group |
|
225 | 225 | * @param bool $create |
226 | 226 | * |
227 | 227 | * @internal param bool $recurse |
228 | - * @return false on failure, method (u-ser,g-roup,w-orld) on success |
|
228 | + * @return false|string on failure, method (u-ser,g-roup,w-orld) on success |
|
229 | 229 | */ |
230 | 230 | public function makeWritable($path, $group = false, $create = true) |
231 | 231 | { |
@@ -63,6 +63,8 @@ discard block |
||
63 | 63 | /** |
64 | 64 | * *#@+ |
65 | 65 | * Xoops Write Licence System Key |
66 | + * @param string $system_key |
|
67 | + * @param string $licensefile |
|
66 | 68 | */ |
67 | 69 | public function xoops_putLicenseKey($system_key, $licensefile, $license_file_dist = 'license.dist.php') |
68 | 70 | { |
@@ -136,6 +138,7 @@ discard block |
||
136 | 138 | /** |
137 | 139 | * *#@+ |
138 | 140 | * Xoops Stripe Licence System Key |
141 | + * @param string $xoops_key |
|
139 | 142 | */ |
140 | 143 | public function xoops_stripeKey($xoops_key) |
141 | 144 | { |
@@ -70,6 +70,8 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * *#@+ |
72 | 72 | * Xoops Write Licence System Key |
73 | + * @param string $public_key |
|
74 | + * @param string $licensefile |
|
73 | 75 | */ |
74 | 76 | public function xoops_upgradeLicenseKey($public_key, $licensefile, $license_file_dist = 'license.dist.php') |
75 | 77 | { |
@@ -94,6 +96,8 @@ discard block |
||
94 | 96 | /** |
95 | 97 | * *#@+ |
96 | 98 | * Xoops Write Licence System Key |
99 | + * @param string $system_key |
|
100 | + * @param string $licensefile |
|
97 | 101 | */ |
98 | 102 | public function xoops_putLicenseKey($system_key, $licensefile, $license_file_dist = 'license.dist.php') |
99 | 103 | { |
@@ -209,6 +213,7 @@ discard block |
||
209 | 213 | /** |
210 | 214 | * *#@+ |
211 | 215 | * Xoops Stripe Licence System Key |
216 | + * @param string $xoops_key |
|
212 | 217 | */ |
213 | 218 | public function xoops_stripeKey($xoops_key, $num = 6, $length = 30, $uu = 0) |
214 | 219 | { |
@@ -80,7 +80,7 @@ |
||
80 | 80 | /** |
81 | 81 | * Check imptotal |
82 | 82 | * |
83 | - * @return bool |
|
83 | + * @return boolean|null |
|
84 | 84 | */ |
85 | 85 | public function check_imptotal() |
86 | 86 | { |
@@ -1,8 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | use Xmf\Database\Tables; |
4 | -use Xmf\Key\Basic; |
|
5 | -use Xmf\Key\FileStorage; |
|
6 | 4 | |
7 | 5 | /** |
8 | 6 | * Upgrade from 2.5.7 to 2.5.8 |
@@ -98,7 +98,7 @@ |
||
98 | 98 | * Get Object |
99 | 99 | * |
100 | 100 | * @param int $id |
101 | - * @return object |
|
101 | + * @return null|XoopsRank |
|
102 | 102 | */ |
103 | 103 | public function get($id = 0) |
104 | 104 | { |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | /** |
224 | 224 | * Access the only instance of this class |
225 | 225 | * |
226 | - * @return object |
|
226 | + * @return MyTextSanitizer |
|
227 | 227 | * @static |
228 | 228 | * @staticvar object |
229 | 229 | */ |
@@ -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) |
@@ -623,11 +623,11 @@ discard block |
||
623 | 623 | * Filters textarea form data submitted for preview |
624 | 624 | * |
625 | 625 | * @param string $text |
626 | - * @param bool|int $html allow html? |
|
627 | - * @param bool|int $smiley allow smileys? |
|
628 | - * @param bool|int $xcode allow xoopscode? |
|
629 | - * @param bool|int $image allow inline images? |
|
630 | - * @param bool|int $br convert linebreaks? |
|
626 | + * @param integer $html allow html? |
|
627 | + * @param integer $smiley allow smileys? |
|
628 | + * @param integer $xcode allow xoopscode? |
|
629 | + * @param integer $image allow inline images? |
|
630 | + * @param integer $br convert linebreaks? |
|
631 | 631 | * @return string |
632 | 632 | */ |
633 | 633 | public function &previewTarea($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1) |
@@ -658,8 +658,8 @@ discard block |
||
658 | 658 | /** |
659 | 659 | * MyTextSanitizer::codePreConv() |
660 | 660 | * |
661 | - * @param mixed $text |
|
662 | - * @param mixed $xcode |
|
661 | + * @param string $text |
|
662 | + * @param integer $xcode |
|
663 | 663 | * @return mixed |
664 | 664 | */ |
665 | 665 | public function codePreConv($text, $xcode = 1) |
@@ -695,8 +695,8 @@ discard block |
||
695 | 695 | * MyTextSanitizer::codeConv() |
696 | 696 | * |
697 | 697 | * @param mixed $text |
698 | - * @param mixed $xcode |
|
699 | - * @return mixed |
|
698 | + * @param integer $xcode |
|
699 | + * @return string |
|
700 | 700 | */ |
701 | 701 | public function codeConv($text, $xcode = 1) |
702 | 702 | { |
@@ -712,7 +712,7 @@ discard block |
||
712 | 712 | /** |
713 | 713 | * MyTextSanitizer::executeExtensions() |
714 | 714 | * |
715 | - * @return bool |
|
715 | + * @return boolean|null |
|
716 | 716 | */ |
717 | 717 | public function executeExtensions() |
718 | 718 | { |
@@ -796,8 +796,8 @@ discard block |
||
796 | 796 | * MyTextSanitizer::codeSanitizer() |
797 | 797 | * |
798 | 798 | * @param mixed $str |
799 | - * @param mixed $image |
|
800 | - * @return mixed|string |
|
799 | + * @param integer $image |
|
800 | + * @return string |
|
801 | 801 | */ |
802 | 802 | public function codeSanitizer($str, $image = 1) |
803 | 803 | { |
@@ -814,8 +814,8 @@ discard block |
||
814 | 814 | * @param mixed $text |
815 | 815 | * @param integer $allowhtml |
816 | 816 | * @param integer $smiley |
817 | - * @param mixed $bbcode |
|
818 | - * @return mixed|string |
|
817 | + * @param integer $bbcode |
|
818 | + * @return string |
|
819 | 819 | */ |
820 | 820 | public function sanitizeForDisplay($text, $allowhtml = 0, $smiley = 1, $bbcode = 1) |
821 | 821 | { |
@@ -845,8 +845,8 @@ discard block |
||
845 | 845 | * @param mixed $text |
846 | 846 | * @param integer $allowhtml |
847 | 847 | * @param integer $smiley |
848 | - * @param mixed $bbcode |
|
849 | - * @return mixed|string |
|
848 | + * @param integer $bbcode |
|
849 | + * @return string |
|
850 | 850 | */ |
851 | 851 | public function sanitizeForPreview($text, $allowhtml = 0, $smiley = 1, $bbcode = 1) |
852 | 852 | { |
@@ -889,8 +889,8 @@ discard block |
||
889 | 889 | * MyTextSanitizer::makeTboxData4Show() |
890 | 890 | * |
891 | 891 | * @param mixed $text |
892 | - * @param mixed $smiley |
|
893 | - * @return mixed|string |
|
892 | + * @param integer $smiley |
|
893 | + * @return string |
|
894 | 894 | */ |
895 | 895 | public function makeTboxData4Show($text, $smiley = 0) |
896 | 896 | { |
@@ -917,8 +917,8 @@ discard block |
||
917 | 917 | * MyTextSanitizer::makeTboxData4Preview() |
918 | 918 | * |
919 | 919 | * @param mixed $text |
920 | - * @param mixed $smiley |
|
921 | - * @return mixed|string |
|
920 | + * @param integer $smiley |
|
921 | + * @return string |
|
922 | 922 | */ |
923 | 923 | public function makeTboxData4Preview($text, $smiley = 0) |
924 | 924 | { |
@@ -962,8 +962,8 @@ discard block |
||
962 | 962 | * @param mixed $text |
963 | 963 | * @param integer $html |
964 | 964 | * @param integer $smiley |
965 | - * @param mixed $xcode |
|
966 | - * @return mixed|string |
|
965 | + * @param integer $xcode |
|
966 | + * @return string |
|
967 | 967 | */ |
968 | 968 | public function &makeTareaData4Show(&$text, $html = 1, $smiley = 1, $xcode = 1) |
969 | 969 | { |
@@ -992,8 +992,8 @@ discard block |
||
992 | 992 | * @param mixed $text |
993 | 993 | * @param integer $html |
994 | 994 | * @param integer $smiley |
995 | - * @param mixed $xcode |
|
996 | - * @return mixed|string |
|
995 | + * @param integer $xcode |
|
996 | + * @return string |
|
997 | 997 | */ |
998 | 998 | public function &makeTareaData4Preview(&$text, $html = 1, $smiley = 1, $xcode = 1) |
999 | 999 | { |