Completed
Pull Request — master (#76)
by Gino
11:49
created
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.
htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Config.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
      *
292 292
      * @param string $key key
293 293
      * @param mixed $value value
294
-     * @param mixed $a
294
+     * @param string $a
295 295
      */
296 296
     public function set($key, $value, $a = null)
297 297
     {
@@ -763,7 +763,7 @@  discard block
 block discarded – undo
763 763
      * @param bool $mq_fix Boolean whether or not to enable magic quotes fix
764 764
      * @param HTMLPurifier_ConfigSchema $schema Schema to use, if not global copy
765 765
      *
766
-     * @return mixed
766
+     * @return HTMLPurifier_Config
767 767
      */
768 768
     public static function loadArrayFromForm($array, $index = false, $allowed = true, $mq_fix = true, $schema = null)
769 769
     {
Please login to merge, or discard this patch.
modules/protector/library/HTMLPurifier/DefinitionCache/Serializer.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
     /**
7 7
      * @param HTMLPurifier_Definition $def
8 8
      * @param HTMLPurifier_Config $config
9
-     * @return int|bool
9
+     * @return null|boolean
10 10
      */
11 11
     public function add($def, $config)
12 12
     {
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * @param HTMLPurifier_Definition $def
28 28
      * @param HTMLPurifier_Config $config
29
-     * @return int|bool
29
+     * @return null|boolean
30 30
      */
31 31
     public function set($def, $config)
32 32
     {
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * @param HTMLPurifier_Definition $def
45 45
      * @param HTMLPurifier_Config $config
46
-     * @return int|bool
46
+     * @return null|boolean
47 47
      */
48 48
     public function replace($def, $config)
49 49
     {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
     /**
90 90
      * @param HTMLPurifier_Config $config
91
-     * @return bool
91
+     * @return false|null
92 92
      */
93 93
     public function flush($config)
94 94
     {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
     /**
113 113
      * @param HTMLPurifier_Config $config
114
-     * @return bool
114
+     * @return false|null
115 115
      */
116 116
     public function cleanup($config)
117 117
     {
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      * @param string $file File name to write to
181 181
      * @param string $data Data to write into file
182 182
      * @param HTMLPurifier_Config $config
183
-     * @return int|bool Number of bytes written if success, or false if failure.
183
+     * @return boolean Number of bytes written if success, or false if failure.
184 184
      */
185 185
     private function _write($file, $data, $config)
186 186
     {
Please login to merge, or discard this patch.
xoops_lib/modules/protector/library/HTMLPurifier/DefinitionCacheFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 
92 92
     /**
93 93
      * Registers a decorator to add to all new cache objects
94
-     * @param HTMLPurifier_DefinitionCache_Decorator|string $decorator An instance or the name of a decorator
94
+     * @param string $decorator An instance or the name of a decorator
95 95
      */
96 96
     public function addDecorator($decorator)
97 97
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/library/HTMLPurifier/DoctypeRegistry.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
      *       parameters for constructing a doctype object
22 22
      * @param string $doctype Name of doctype or literal doctype object
23 23
      * @param bool $xml
24
-     * @param array $modules Modules doctype will load
25
-     * @param array $tidy_modules Modules doctype will load for certain modes
24
+     * @param string[] $modules Modules doctype will load
25
+     * @param string[] $tidy_modules Modules doctype will load for certain modes
26 26
      * @param array $aliases Alias names for doctype
27 27
      * @param string $dtd_public
28 28
      * @param string $dtd_system
Please login to merge, or discard this patch.