@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * @param $textarea_id |
| 31 | 31 | * |
| 32 | - * @return array |
|
| 32 | + * @return string[] |
|
| 33 | 33 | */ |
| 34 | 34 | public function encode($textarea_id) |
| 35 | 35 | { |
@@ -90,6 +90,8 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | 92 | * @param $text |
| 93 | + * @param integer $width |
|
| 94 | + * @param integer $height |
|
| 93 | 95 | * |
| 94 | 96 | * @return string |
| 95 | 97 | */ |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | * @param string $css |
| 19 | 19 | * @param HTMLPurifier_Config $config |
| 20 | 20 | * @param HTMLPurifier_Context $context |
| 21 | - * @return bool|string |
|
| 21 | + * @return string|false |
|
| 22 | 22 | */ |
| 23 | 23 | public function validate($css, $config, $context) |
| 24 | 24 | { |
@@ -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 | { |
@@ -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)) { |
@@ -70,6 +70,9 @@ |
||
| 70 | 70 | $this->setValues($value); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | + /** |
|
| 74 | + * @param integer $variant |
|
| 75 | + */ |
|
| 73 | 76 | public function hasAlpha($variant = null) |
| 74 | 77 | { |
| 75 | 78 | if ($variant === null) { |