@@ -24,7 +24,7 @@ |
||
24 | 24 | * @param string $string |
25 | 25 | * @param HTMLPurifier_Config $config |
26 | 26 | * @param HTMLPurifier_Context $context |
27 | - * @return bool|string |
|
27 | + * @return string|false |
|
28 | 28 | */ |
29 | 29 | public function validate($string, $config, $context) |
30 | 30 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * @param string $id |
35 | 35 | * @param HTMLPurifier_Config $config |
36 | 36 | * @param HTMLPurifier_Context $context |
37 | - * @return bool|string |
|
37 | + * @return false|string |
|
38 | 38 | */ |
39 | 39 | public function validate($id, $config, $context) |
40 | 40 | { |
@@ -13,7 +13,7 @@ |
||
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 | { |
@@ -56,6 +56,9 @@ |
||
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))); |
@@ -31,7 +31,7 @@ |
||
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 | { |
@@ -20,7 +20,7 @@ |
||
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 |
@@ -291,7 +291,7 @@ discard block |
||
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 |
||
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 | { |
@@ -91,7 +91,7 @@ |
||
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 | { |
@@ -21,8 +21,8 @@ |
||
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 |