@@ -75,7 +75,7 @@ |
||
75 | 75 | /** |
76 | 76 | * @param $type |
77 | 77 | * |
78 | - * @return int|mixed |
|
78 | + * @return integer |
|
79 | 79 | */ |
80 | 80 | public function execute($type) |
81 | 81 | { |
@@ -111,7 +111,7 @@ |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
114 | - * @param $sql |
|
114 | + * @param string $sql |
|
115 | 115 | */ |
116 | 116 | public function checkSql($sql) |
117 | 117 | { |
@@ -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 | { |
@@ -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))); |
@@ -56,6 +56,7 @@ discard block |
||
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 |
||
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 | { |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * @param string $string |
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($string, $config, $context) |
40 | 40 | { |