@@ -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 | { |
@@ -10,7 +10,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -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 | { |
@@ -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 |
@@ -763,7 +763,7 @@ |
||
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 | { |
@@ -351,7 +351,7 @@ |
||
351 | 351 | } |
352 | 352 | |
353 | 353 | /** |
354 | - * @return bool |
|
354 | + * @return boolean|null |
|
355 | 355 | */ |
356 | 356 | public static function iconvAvailable() |
357 | 357 | { |
@@ -451,7 +451,7 @@ |
||
451 | 451 | * separate lists for processing. Format is element[attr1|attr2],element2... |
452 | 452 | * @warning Although it's largely drawn from TinyMCE's implementation, |
453 | 453 | * it is different, and you'll probably have to modify your lists |
454 | - * @param array $list String list to parse |
|
454 | + * @param string $list String list to parse |
|
455 | 455 | * @return array |
456 | 456 | * @todo Give this its own class, probably static interface |
457 | 457 | */ |