Completed
Pull Request — master (#284)
by Gino
07:36
created
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/Nmtokens.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
      * @param string $string
11 11
      * @param HTMLPurifier_Config $config
12 12
      * @param HTMLPurifier_Context $context
13
-     * @return bool|string
13
+     * @return false|string
14 14
      */
15 15
     public function validate($string, $config, $context)
16 16
     {
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param string $string
35 35
      * @param HTMLPurifier_Config $config
36 36
      * @param HTMLPurifier_Context $context
37
-     * @return array
37
+     * @return string[]
38 38
      */
39 39
     protected function split($string, $config, $context)
40 40
     {
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * Template method for removing certain tokens based on arbitrary criteria.
57 57
      * @note If we wanted to be really functional, we'd do an array_filter
58 58
      *       with a callback. But... we're not.
59
-     * @param array $tokens
59
+     * @param string[] $tokens
60 60
      * @param HTMLPurifier_Config $config
61 61
      * @param HTMLPurifier_Context $context
62 62
      * @return array
Please login to merge, or discard this patch.
xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/HTML/Pixels.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.
xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/URI/IPv6.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/AttrTypes.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@
 block discarded – undo
56 56
         $this->info['Number']   = new HTMLPurifier_AttrDef_Integer(false, false, true);
57 57
     }
58 58
 
59
+    /**
60
+     * @param string $in
61
+     */
59 62
     private static function makeEnum($in)
60 63
     {
61 64
         return new HTMLPurifier_AttrDef_Clone(new HTMLPurifier_AttrDef_Enum(explode(',', $in)));
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/library/HTMLPurifier/ChildDef/Custom.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     private $_pcre_regex;
32 32
 
33 33
     /**
34
-     * @param $dtd_regex Allowed child pattern from the DTD
34
+     * @param string $dtd_regex Allowed child pattern from the DTD
35 35
      */
36 36
     public function __construct($dtd_regex)
37 37
     {
Please login to merge, or discard this patch.
xoops_lib/modules/protector/library/HTMLPurifier/ChildDef/Optional.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public $type = 'optional';
21 21
 
22 22
     /**
23
-     * @param array $children
23
+     * @param HTMLPurifier_Node[] $children
24 24
      * @param HTMLPurifier_Config $config
25 25
      * @param HTMLPurifier_Context $context
26 26
      * @return array
Please login to merge, or discard this patch.