Completed
Pull Request — master (#76)
by Gino
11:49
created
modules/protector/filters_disabled/postcommon_post_htmlpurify4guest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     public $method;
10 10
 
11 11
     /**
12
-     * @return bool
12
+     * @return null|boolean
13 13
      */
14 14
     public function execute()
15 15
     {
Please login to merge, or discard this patch.
modules/protector/filters_disabled/postcommon_register_insert_js_check.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 class protector_postcommon_register_insert_js_check extends ProtectorFilterAbstract
7 7
 {
8 8
     /**
9
-     * @return bool
9
+     * @return null|boolean
10 10
      */
11 11
     public function execute()
12 12
     {
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     // import from D3forumAntispamDefault.clas.php
38 38
     /**
39
-     * @param null $time
39
+     * @param integer $time
40 40
      *
41 41
      * @return string
42 42
      */
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/include/install_extramodcheck.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * @param $xoops_root_path
5 5
  * @param $mytrustdirname
6 6
  *
7
- * @return array
7
+ * @return string[]
8 8
  */
9 9
 function get_writeoks_from_protector( $xoops_root_path , $mytrustdirname )
10 10
 {
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/include/postcheck_functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /**
4
- * @return bool
4
+ * @return boolean|null
5 5
  */
6 6
 function protector_postcommon()
7 7
 {
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/include/precheck_functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /**
4
- * @return bool
4
+ * @return null|boolean
5 5
  */
6 6
 function protector_prepare()
7 7
 {
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Arborize.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -9,6 +9,11 @@  discard block
 block discarded – undo
9 9
  */
10 10
 class HTMLPurifier_Arborize
11 11
 {
12
+    /**
13
+     * @param HTMLPurifier_Token[] $tokens
14
+     * @param HTMLPurifier_Config $config
15
+     * @param HTMLPurifier_Context $context
16
+     */
12 17
     public static function arborize($tokens, $config, $context) {
13 18
         $definition = $config->getHTMLDefinition();
14 19
         $parent = new HTMLPurifier_Token_Start($definition->info_parent);
@@ -36,6 +41,10 @@  discard block
 block discarded – undo
36 41
         return $stack[0];
37 42
     }
38 43
 
44
+    /**
45
+     * @param HTMLPurifier_Config $config
46
+     * @param HTMLPurifier_Context $context
47
+     */
39 48
     public static function flatten($node, $config, $context) {
40 49
         $level = 0;
41 50
         $nodes = array($level => new HTMLPurifier_Queue(array($node)));
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -56,6 +56,7 @@  discard block
 block discarded – undo
56 56
      *          4.7.  However, note that we are NOT necessarily
57 57
      *          parsing XML, thus, this behavior may still be correct. We
58 58
      *          assume that newlines have been normalized.
59
+     * @param string $string
59 60
      */
60 61
     public function parseCDATA($string)
61 62
     {
@@ -92,6 +93,7 @@  discard block
 block discarded – undo
92 93
     /**
93 94
      * Parses a possibly escaped CSS string and returns the "pure"
94 95
      * version of it.
96
+     * @param string $string
95 97
      */
96 98
     protected function expandCSSEscape($string)
97 99
     {
Please login to merge, or discard this patch.
xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/CSS/Number.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * @param string $number
25 25
      * @param HTMLPurifier_Config $config
26 26
      * @param HTMLPurifier_Context $context
27
-     * @return string|bool
27
+     * @return false|string
28 28
      * @warning Some contexts do not pass $config, $context. These
29 29
      *          variables should not be used without checking HTMLPurifier_Length
30 30
      */
Please login to merge, or discard this patch.
xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/HTML/Bool.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      * @param string $string
29 29
      * @param HTMLPurifier_Config $config
30 30
      * @param HTMLPurifier_Context $context
31
-     * @return bool|string
31
+     * @return boolean
32 32
      */
33 33
     public function validate($string, $config, $context)
34 34
     {
Please login to merge, or discard this patch.