@@ -173,6 +173,10 @@ discard block |
||
173 | 173 | return $this->parseData($string, false, $config); |
174 | 174 | } |
175 | 175 | |
176 | + /** |
|
177 | + * @param string $string |
|
178 | + * @param HTMLPurifier_Config $config |
|
179 | + */ |
|
176 | 180 | public function parseAttr($string, $config) { |
177 | 181 | return $this->parseData($string, true, $config); |
178 | 182 | } |
@@ -184,6 +188,7 @@ discard block |
||
184 | 188 | * into the correct ones. |
185 | 189 | * |
186 | 190 | * @param string $string String character data to be parsed. |
191 | + * @param boolean $is_attr |
|
187 | 192 | * @return string Parsed character data. |
188 | 193 | */ |
189 | 194 | public function parseData($string, $is_attr, $config) |
@@ -361,6 +366,7 @@ discard block |
||
361 | 366 | /** |
362 | 367 | * Takes a string of HTML (fragment or document) and returns the content |
363 | 368 | * @todo Consider making protected |
369 | + * @param string $html |
|
364 | 370 | */ |
365 | 371 | public function extractBody($html) |
366 | 372 | { |
@@ -94,6 +94,7 @@ |
||
94 | 94 | * To iterate is human, to recurse divine - L. Peter Deutsch |
95 | 95 | * @param DOMNode $node DOMNode to be tokenized. |
96 | 96 | * @param HTMLPurifier_Token[] $tokens Array-list of already tokenized tokens. |
97 | + * @param HTMLPurifier_Config $config |
|
97 | 98 | * @return HTMLPurifier_Token of node appended to previously passed tokens. |
98 | 99 | */ |
99 | 100 | protected function tokenizeDOM($node, &$tokens, $config) |
@@ -92,9 +92,9 @@ |
||
92 | 92 | * XoopsFile::getHandler() |
93 | 93 | * |
94 | 94 | * @param string $name |
95 | - * @param mixed $path |
|
96 | - * @param mixed $create |
|
97 | - * @param mixed $mode |
|
95 | + * @param string $path |
|
96 | + * @param boolean $create |
|
97 | + * @param integer $mode |
|
98 | 98 | * @return |
99 | 99 | */ |
100 | 100 | public static function getHandler($name = 'file', $path = false, $create = false, $mode = null) |
@@ -487,6 +487,7 @@ |
||
487 | 487 | * call (modifiers). |
488 | 488 | * |
489 | 489 | * @param array $trace |
490 | + * @param integer $num_params |
|
490 | 491 | * |
491 | 492 | * @return array($params, $modifiers, $callee, $caller, $miniTrace) |
492 | 493 | */ |
@@ -54,6 +54,9 @@ discard block |
||
54 | 54 | return true; |
55 | 55 | } |
56 | 56 | |
57 | + /** |
|
58 | + * @param integer $pos |
|
59 | + */ |
|
57 | 60 | public function replaceRepresentation(Kint_Object_Representation $rep, $pos = null) |
58 | 61 | { |
59 | 62 | if ($pos === null) { |
@@ -69,6 +72,9 @@ discard block |
||
69 | 72 | unset($this->representations[$name]); |
70 | 73 | } |
71 | 74 | |
75 | + /** |
|
76 | + * @param string $name |
|
77 | + */ |
|
72 | 78 | public function getRepresentation($name) |
73 | 79 | { |
74 | 80 | if (isset($this->representations[$name])) { |
@@ -79,6 +79,9 @@ |
||
79 | 79 | return strlen($string); |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param integer $start |
|
84 | + */ |
|
82 | 85 | public static function substr($string, $start, $length = null, $encoding = false) |
83 | 86 | { |
84 | 87 | if (extension_loaded('mbstring')) { |
@@ -156,6 +156,9 @@ discard block |
||
156 | 156 | public $hints = array('color'); |
157 | 157 | public $color = null; |
158 | 158 | |
159 | + /** |
|
160 | + * @param Kint_Object_Representation_Color $color |
|
161 | + */ |
|
159 | 162 | public function __construct($color) |
160 | 163 | { |
161 | 164 | $this->color = $color; |
@@ -195,6 +198,9 @@ discard block |
||
195 | 198 | /** |
196 | 199 | * Helper function for hslToRgb. Even blacker magic. |
197 | 200 | * |
201 | + * @param double $m1 |
|
202 | + * @param double $m2 |
|
203 | + * @param double $hue |
|
198 | 204 | * @return float Color value |
199 | 205 | */ |
200 | 206 | private static function hueToRgb($m1, $m2, $hue) |
@@ -9,6 +9,10 @@ |
||
9 | 9 | public $startline; |
10 | 10 | public $hints = array('object'); |
11 | 11 | |
12 | + /** |
|
13 | + * @param string $a |
|
14 | + * @param string $b |
|
15 | + */ |
|
12 | 16 | public static function sortByHierarchy($a, $b) |
13 | 17 | { |
14 | 18 | if (is_string($a) && is_string($b)) { |
@@ -8,6 +8,10 @@ |
||
8 | 8 | public $hints = array(); |
9 | 9 | public $contents = array(); |
10 | 10 | |
11 | + /** |
|
12 | + * @param string $label |
|
13 | + * @param string $name |
|
14 | + */ |
|
11 | 15 | public function __construct($label, $name = null) |
12 | 16 | { |
13 | 17 | $this->label = $label; |