@@ -9,7 +9,7 @@ |
||
9 | 9 | class protector_postcommon_post_deny_by_httpbl extends ProtectorFilterAbstract |
10 | 10 | { |
11 | 11 | /** |
12 | - * @return bool |
|
12 | + * @return null|boolean |
|
13 | 13 | */ |
14 | 14 | public function execute() |
15 | 15 | { |
@@ -6,7 +6,7 @@ |
||
6 | 6 | class protector_postcommon_post_deny_by_rbl extends ProtectorFilterAbstract |
7 | 7 | { |
8 | 8 | /** |
9 | - * @return bool |
|
9 | + * @return null|boolean |
|
10 | 10 | */ |
11 | 11 | public function execute() |
12 | 12 | { |
@@ -9,7 +9,7 @@ |
||
9 | 9 | public $method; |
10 | 10 | |
11 | 11 | /** |
12 | - * @return bool |
|
12 | + * @return null|boolean |
|
13 | 13 | */ |
14 | 14 | public function execute() |
15 | 15 | { |
@@ -9,7 +9,7 @@ |
||
9 | 9 | class protector_postcommon_post_need_multibyte extends ProtectorFilterAbstract |
10 | 10 | { |
11 | 11 | /** |
12 | - * @return bool |
|
12 | + * @return boolean|null |
|
13 | 13 | */ |
14 | 14 | public function execute() |
15 | 15 | { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | class protector_postcommon_post_register_moratorium extends ProtectorFilterAbstract |
9 | 9 | { |
10 | 10 | /** |
11 | - * @return bool |
|
11 | + * @return boolean|null |
|
12 | 12 | */ |
13 | 13 | public function execute() |
14 | 14 | { |
@@ -4,7 +4,7 @@ |
||
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 | { |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | /** |
4 | - * @return bool |
|
4 | + * @return boolean|null |
|
5 | 5 | */ |
6 | 6 | function protector_postcommon() |
7 | 7 | { |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | /** |
4 | - * @return bool |
|
4 | + * @return null|boolean |
|
5 | 5 | */ |
6 | 6 | function protector_prepare() |
7 | 7 | { |
@@ -9,6 +9,11 @@ discard block |
||
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 |
||
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))); |