Completed
Pull Request — master (#268)
by Richard
07:30
created
modules/protector/filters_disabled/postcommon_post_register_moratorium.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/Font.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      * @param string $aIP
14 14
      * @param HTMLPurifier_Config $config
15 15
      * @param HTMLPurifier_Context $context
16
-     * @return bool|string
16
+     * @return false|string
17 17
      */
18 18
     public function validate($aIP, $config, $context)
19 19
     {
Please login to merge, or discard this patch.
xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/Length.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      * @param string $aIP
14 14
      * @param HTMLPurifier_Config $config
15 15
      * @param HTMLPurifier_Context $context
16
-     * @return bool|string
16
+     * @return false|string
17 17
      */
18 18
     public function validate($aIP, $config, $context)
19 19
     {
Please login to merge, or discard this patch.
modules/protector/library/HTMLPurifier/AttrDef/HTML/FrameTarget.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      * @param string $string
24 24
      * @param HTMLPurifier_Config $config
25 25
      * @param HTMLPurifier_Context $context
26
-     * @return bool|string
26
+     * @return string|false
27 27
      */
28 28
     public function validate($string, $config, $context)
29 29
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/HTML/ID.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      * @param string $aIP
14 14
      * @param HTMLPurifier_Config $config
15 15
      * @param HTMLPurifier_Context $context
16
-     * @return bool|string
16
+     * @return false|string
17 17
      */
18 18
     public function validate($aIP, $config, $context)
19 19
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Encoder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
xoops_lib/modules/protector/library/HTMLPurifier/Injector/AutoParagraph.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
htdocs/include/findusers.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
htdocs/class/module.textsanitizer.php 1 patch
Doc Comments   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.