Completed
Push — master ( 7d34c2...d5e38f )
by Michael
10s
created
htdocs/class/module.textsanitizer.php 1 patch
Doc Comments   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
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
      */
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
      * Replace XoopsCodes with their equivalent HTML formatting
395 395
      *
396 396
      * @param  string   $text
397
-     * @param  bool|int $allowimage Allow images in the text?
397
+     * @param  integer $allowimage Allow images in the text?
398 398
      *                              On FALSE, uses links to images.
399 399
      * @return string
400 400
      */
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
      * A quick solution for filtering XSS scripts
481 481
      *
482 482
      * @TODO : To be improved
483
-     * @param $text
483
+     * @param string $text
484 484
      * @return mixed
485 485
      */
486 486
     public function filterXss($text)
@@ -576,11 +576,11 @@  discard block
 block discarded – undo
576 576
      * Filters textarea form data in DB for display
577 577
      *
578 578
      * @param  string   $text
579
-     * @param  bool|int $html   allow html?
580
-     * @param  bool|int $smiley allow smileys?
581
-     * @param  bool|int $xcode  allow xoopscode?
582
-     * @param  bool|int $image  allow inline images?
583
-     * @param  bool|int $br     convert linebreaks?
579
+     * @param  integer $html   allow html?
580
+     * @param  integer $smiley allow smileys?
581
+     * @param  integer $xcode  allow xoopscode?
582
+     * @param  integer $image  allow inline images?
583
+     * @param  integer $br     convert linebreaks?
584 584
      * @return string
585 585
      */
586 586
     public function &displayTarea($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1)
@@ -624,11 +624,11 @@  discard block
 block discarded – undo
624 624
      * Filters textarea form data submitted for preview
625 625
      *
626 626
      * @param  string   $text
627
-     * @param  bool|int $html   allow html?
628
-     * @param  bool|int $smiley allow smileys?
629
-     * @param  bool|int $xcode  allow xoopscode?
630
-     * @param  bool|int $image  allow inline images?
631
-     * @param  bool|int $br     convert linebreaks?
627
+     * @param  integer $html   allow html?
628
+     * @param  integer $smiley allow smileys?
629
+     * @param  integer $xcode  allow xoopscode?
630
+     * @param  integer $image  allow inline images?
631
+     * @param  integer $br     convert linebreaks?
632 632
      * @return string
633 633
      */
634 634
     public function &previewTarea($text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1)
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
      * MyTextSanitizer::codePreConv()
661 661
      *
662 662
      * @param  mixed $text
663
-     * @param  mixed $xcode
663
+     * @param  integer $xcode
664 664
      * @return mixed
665 665
      */
666 666
     public function codePreConv($text, $xcode = 1)
@@ -696,8 +696,8 @@  discard block
 block discarded – undo
696 696
      * MyTextSanitizer::codeConv()
697 697
      *
698 698
      * @param  mixed $text
699
-     * @param  mixed $xcode
700
-     * @return mixed
699
+     * @param  integer $xcode
700
+     * @return string
701 701
      */
702 702
     public function codeConv($text, $xcode = 1)
703 703
     {
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
     /**
714 714
      * MyTextSanitizer::executeExtensions()
715 715
      *
716
-     * @return bool
716
+     * @return boolean|null
717 717
      */
718 718
     public function executeExtensions()
719 719
     {
@@ -798,8 +798,8 @@  discard block
 block discarded – undo
798 798
      * MyTextSanitizer::codeSanitizer()
799 799
      *
800 800
      * @param  mixed $str
801
-     * @param  mixed $image
802
-     * @return mixed|string
801
+     * @param  integer $image
802
+     * @return string
803 803
      */
804 804
     public function codeSanitizer($str, $image = 1)
805 805
     {
@@ -816,8 +816,8 @@  discard block
 block discarded – undo
816 816
      * @param  mixed   $text
817 817
      * @param  integer $allowhtml
818 818
      * @param  integer $smiley
819
-     * @param  mixed   $bbcode
820
-     * @return mixed|string
819
+     * @param  integer   $bbcode
820
+     * @return string
821 821
      */
822 822
     public function sanitizeForDisplay($text, $allowhtml = 0, $smiley = 1, $bbcode = 1)
823 823
     {
@@ -847,8 +847,8 @@  discard block
 block discarded – undo
847 847
      * @param  mixed   $text
848 848
      * @param  integer $allowhtml
849 849
      * @param  integer $smiley
850
-     * @param  mixed   $bbcode
851
-     * @return mixed|string
850
+     * @param  integer   $bbcode
851
+     * @return string
852 852
      */
853 853
     public function sanitizeForPreview($text, $allowhtml = 0, $smiley = 1, $bbcode = 1)
854 854
     {
@@ -891,8 +891,8 @@  discard block
 block discarded – undo
891 891
      * MyTextSanitizer::makeTboxData4Show()
892 892
      *
893 893
      * @param  mixed $text
894
-     * @param  mixed $smiley
895
-     * @return mixed|string
894
+     * @param  integer $smiley
895
+     * @return string
896 896
      */
897 897
     public function makeTboxData4Show($text, $smiley = 0)
898 898
     {
@@ -919,8 +919,8 @@  discard block
 block discarded – undo
919 919
      * MyTextSanitizer::makeTboxData4Preview()
920 920
      *
921 921
      * @param  mixed $text
922
-     * @param  mixed $smiley
923
-     * @return mixed|string
922
+     * @param  integer $smiley
923
+     * @return string
924 924
      */
925 925
     public function makeTboxData4Preview($text, $smiley = 0)
926 926
     {
@@ -964,8 +964,8 @@  discard block
 block discarded – undo
964 964
      * @param  mixed   $text
965 965
      * @param  integer $html
966 966
      * @param  integer $smiley
967
-     * @param  mixed   $xcode
968
-     * @return mixed|string
967
+     * @param  integer   $xcode
968
+     * @return string
969 969
      */
970 970
     public function &makeTareaData4Show(&$text, $html = 1, $smiley = 1, $xcode = 1)
971 971
     {
@@ -994,8 +994,8 @@  discard block
 block discarded – undo
994 994
      * @param  mixed   $text
995 995
      * @param  integer $html
996 996
      * @param  integer $smiley
997
-     * @param  mixed   $xcode
998
-     * @return mixed|string
997
+     * @param  integer   $xcode
998
+     * @return string
999 999
      */
1000 1000
     public function &makeTareaData4Preview(&$text, $html = 1, $smiley = 1, $xcode = 1)
1001 1001
     {
Please login to merge, or discard this patch.