@@ -52,6 +52,10 @@ |
||
52 | 52 | $o->addRepresentation($r, 0); |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param string $var |
|
57 | + * @param string $parent_path |
|
58 | + */ |
|
55 | 59 | protected static function xmlToSimpleXML($var, $parent_path) |
56 | 60 | { |
57 | 61 | try { |
@@ -145,6 +145,9 @@ |
||
145 | 145 | return "<a {$class}href=\"{$ideLink}\">{$shortenedPath}:{$line}</a>"; |
146 | 146 | } |
147 | 147 | |
148 | + /** |
|
149 | + * @param string $string |
|
150 | + */ |
|
148 | 151 | public function escape($string, $encoding = false) |
149 | 152 | { |
150 | 153 | if ($encoding === false) { |
@@ -131,6 +131,9 @@ discard block |
||
131 | 131 | return '<dl>'.$header.$children.'</dl>'; |
132 | 132 | } |
133 | 133 | |
134 | + /** |
|
135 | + * @param boolean $has_children |
|
136 | + */ |
|
134 | 137 | public function renderHeaderWrapper(Kint_Object $o, $has_children, $contents) |
135 | 138 | { |
136 | 139 | $out = '<dt'; |
@@ -257,6 +260,9 @@ discard block |
||
257 | 260 | return $output.'</dd>'; |
258 | 261 | } |
259 | 262 | |
263 | + /** |
|
264 | + * @return string |
|
265 | + */ |
|
260 | 266 | protected function renderTab(Kint_Object $o, Kint_Object_Representation $rep) |
261 | 267 | { |
262 | 268 | if ($plugin = $this->getPlugin(self::$tab_renderers, $rep->hints)) { |
@@ -14,6 +14,7 @@ |
||
14 | 14 | * |
15 | 15 | * This is a placeholder until Kint 3 when it can be renamed to |
16 | 16 | * renderLockedHeader after the deprecated static method is removed |
17 | + * @param string $content |
|
17 | 18 | */ |
18 | 19 | public function renderHeaderLocked(Kint_Object $o, $content) |
19 | 20 | { |
@@ -94,6 +94,9 @@ |
||
94 | 94 | return $out; |
95 | 95 | } |
96 | 96 | |
97 | + /** |
|
98 | + * @param integer $width |
|
99 | + */ |
|
97 | 100 | public function boxText($text, $width) |
98 | 101 | { |
99 | 102 | if (Kint_Object_Blob::strlen($text) > $width - 4) { |
@@ -329,6 +329,9 @@ |
||
329 | 329 | return $function_calls; |
330 | 330 | } |
331 | 331 | |
332 | + /** |
|
333 | + * @param integer $direction |
|
334 | + */ |
|
332 | 335 | private static function realTokenIndex(array $tokens, $index, $direction) |
333 | 336 | { |
334 | 337 | $index += $direction; |
@@ -20,7 +20,7 @@ |
||
20 | 20 | /** |
21 | 21 | * Asserts that a condition is true. |
22 | 22 | * |
23 | - * @param array $expected |
|
23 | + * @param string[] $expected |
|
24 | 24 | * @param string $actual |
25 | 25 | * @param string $message |
26 | 26 | * |
@@ -6,6 +6,10 @@ |
||
6 | 6 | protected $triggers; |
7 | 7 | protected $callback; |
8 | 8 | |
9 | + /** |
|
10 | + * @param string[] $types |
|
11 | + * @param Closure $callback |
|
12 | + */ |
|
9 | 13 | public function __construct($types, $triggers, $callback) |
10 | 14 | { |
11 | 15 | $this->types = $types; |