@@ -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) { |
@@ -45,6 +45,9 @@ |
||
45 | 45 | } |
46 | 46 | } |
47 | 47 | |
48 | + /** |
|
49 | + * @param Kint_Object $o |
|
50 | + */ |
|
48 | 51 | protected function blacklist(&$var, &$o) |
49 | 52 | { |
50 | 53 | if (function_exists('spl_object_hash')) { |
@@ -166,6 +166,9 @@ |
||
166 | 166 | } |
167 | 167 | } |
168 | 168 | |
169 | + /** |
|
170 | + * @param string $prop |
|
171 | + */ |
|
169 | 172 | protected function parseProperty(Kint_Object $o, $prop, &$var) |
170 | 173 | { |
171 | 174 | // Duplicating (And slightly optimizing) the Kint_Parser::parseObject() code here |
@@ -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) { |