@@ -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 | { |
@@ -212,7 +212,7 @@ |
||
212 | 212 | /** |
213 | 213 | * Constructor |
214 | 214 | * @param $caption |
215 | - * @param $name |
|
215 | + * @param string $name |
|
216 | 216 | * @param $groupId |
217 | 217 | * @param null $values |
218 | 218 | */ |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | // public |
151 | 151 | /** |
152 | - * @param null $value |
|
152 | + * @param string $value |
|
153 | 153 | */ |
154 | 154 | public function setTemplateDir($value = null) |
155 | 155 | { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | |
164 | 164 | // private |
165 | 165 | /** |
166 | - * @return bool|string |
|
166 | + * @return string|false |
|
167 | 167 | */ |
168 | 168 | public function getTemplatePath() |
169 | 169 | { |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | |
188 | 188 | // public |
189 | 189 | /** |
190 | - * @param $value |
|
190 | + * @param string $value |
|
191 | 191 | */ |
192 | 192 | public function setTemplate($value) |
193 | 193 | { |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | // RMV-NOTIFY |
216 | 216 | // public |
217 | 217 | /** |
218 | - * @param $user |
|
218 | + * @param XoopsUser $user |
|
219 | 219 | */ |
220 | 220 | public function setFromUser($user) |
221 | 221 | { |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | |
236 | 236 | // public |
237 | 237 | /** |
238 | - * @param $value |
|
238 | + * @param string $value |
|
239 | 239 | */ |
240 | 240 | public function setSubject($value) |
241 | 241 | { |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | |
245 | 245 | // public |
246 | 246 | /** |
247 | - * @param $value |
|
247 | + * @param string $value |
|
248 | 248 | */ |
249 | 249 | public function setBody($value) |
250 | 250 | { |
@@ -374,8 +374,8 @@ discard block |
||
374 | 374 | // private |
375 | 375 | /** |
376 | 376 | * @param $uid |
377 | - * @param $subject |
|
378 | - * @param $body |
|
377 | + * @param string $subject |
|
378 | + * @param string $body |
|
379 | 379 | * |
380 | 380 | * @return bool |
381 | 381 | */ |
@@ -402,9 +402,9 @@ discard block |
||
402 | 402 | * Uses the new XoopsMultiMailer |
403 | 403 | * |
404 | 404 | * @param $email |
405 | - * @param $subject |
|
406 | - * @param $body |
|
407 | - * @param $headers |
|
405 | + * @param string $subject |
|
406 | + * @param string $body |
|
407 | + * @param string $headers |
|
408 | 408 | * |
409 | 409 | * @return bool |
410 | 410 | */ |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | // abstract |
573 | 573 | // to be overridden by lang specific mail class, if needed |
574 | 574 | /** |
575 | - * @param $text |
|
575 | + * @param string $text |
|
576 | 576 | * |
577 | 577 | * @return mixed |
578 | 578 | */ |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | } |
201 | 201 | |
202 | 202 | /** |
203 | - * @param $sql |
|
203 | + * @param string $sql |
|
204 | 204 | * |
205 | 205 | * @return mixed |
206 | 206 | */ |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | } |
213 | 213 | |
214 | 214 | /** |
215 | - * @param $table |
|
215 | + * @param string $table |
|
216 | 216 | * |
217 | 217 | * @return mixed |
218 | 218 | */ |
@@ -236,8 +236,8 @@ discard block |
||
236 | 236 | } |
237 | 237 | |
238 | 238 | /** |
239 | - * @param $table |
|
240 | - * @param $query |
|
239 | + * @param string $table |
|
240 | + * @param string $query |
|
241 | 241 | * |
242 | 242 | * @return bool |
243 | 243 | */ |
@@ -227,7 +227,7 @@ |
||
227 | 227 | /** |
228 | 228 | * Assign one or more {@link XoopsConfigItemOption}s |
229 | 229 | * |
230 | - * @param mixed $option either a {@link XoopsConfigItemOption} object or an array of them |
|
230 | + * @param XoopsConfigOption $option either a {@link XoopsConfigItemOption} object or an array of them |
|
231 | 231 | */ |
232 | 232 | public function setConfOptions($option) |
233 | 233 | { |
@@ -62,6 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Get the original filename |
65 | + * @return string |
|
65 | 66 | */ |
66 | 67 | public function getName() |
67 | 68 | { |
@@ -269,6 +270,9 @@ discard block |
||
269 | 270 | } |
270 | 271 | } |
271 | 272 | |
273 | + /** |
|
274 | + * @param string $mimeType |
|
275 | + */ |
|
272 | 276 | protected function storeUploadedFile($target, $mimeType, $uuid) |
273 | 277 | { |
274 | 278 | if (!is_dir(dirname($target))) { |
@@ -50,7 +50,7 @@ |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | - * @param $value |
|
53 | + * @param string $value |
|
54 | 54 | * @param string $name |
55 | 55 | */ |
56 | 56 | public function addMenuTop($value, $name = '') |
@@ -114,7 +114,7 @@ |
||
114 | 114 | class SystemuserrankHandler extends XoopsPersistableObjectHandler |
115 | 115 | { |
116 | 116 | /** |
117 | - * @param null|XoopsDatabase $db |
|
117 | + * @param XoopsDatabase $db |
|
118 | 118 | */ |
119 | 119 | public function __construct(XoopsDatabase $db) |
120 | 120 | { |
@@ -18,10 +18,10 @@ discard block |
||
18 | 18 | * |
19 | 19 | * Comment by Taiwen Jiang (a.k.a. phppp): THE METHOD IS NOT COMPLETE AND NOT SAFE. YOU ARE ENCOURAGED TO USE PHP'S NATIVE FILTER_VAR OR FILTER_INPUT FUNCTIONS DIRECTLY BEFORE WE MIGRATE TO XOOPS 3. |
20 | 20 | * @param $global |
21 | - * @param $key |
|
21 | + * @param string $key |
|
22 | 22 | * @param string $default |
23 | 23 | * @param string $type |
24 | - * @return int|mixed|string |
|
24 | + * @return integer |
|
25 | 25 | */ |
26 | 26 | function system_CleanVars(&$global, $key, $default = '', $type = 'int') |
27 | 27 | { |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
106 | - * @param $img |
|
106 | + * @param string $img |
|
107 | 107 | * |
108 | 108 | * @return mixed |
109 | 109 | */ |