src/Renderer/Rich/Callable.php 1 location
|
@@ 39-44 (lines=6) @@
|
| 36 |
|
$header .= ': <var>'.$this->renderer->escape($o->returntype).'</var>'; |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
if (($s = $o->getValueShort()) !== null) { |
| 40 |
|
if (Kint_Renderer_Rich::$strlen_max && Kint_Object_Blob::strlen($s) > Kint_Renderer_Rich::$strlen_max) { |
| 41 |
|
$s = substr($s, 0, Kint_Renderer_Rich::$strlen_max).'...'; |
| 42 |
|
} |
| 43 |
|
$header .= ' '.$this->renderer->escape($s); |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
if ($o instanceof Kint_Object_Method && strlen($o->owner_class) && strlen($o->name)) { |
| 47 |
|
$cache = array( |
src/Renderer/Rich/SimpleXMLElement.php 1 location
|
@@ 40-45 (lines=6) @@
|
| 37 |
|
if ($s === null && $c = $o->getRepresentation('contents')) { |
| 38 |
|
$c = reset($c->contents); |
| 39 |
|
|
| 40 |
|
if ($c && ($s = $c->getValueShort()) !== null) { |
| 41 |
|
if (Kint_Renderer_Rich::$strlen_max && Kint_Object_Blob::strlen($s) > Kint_Renderer_Rich::$strlen_max) { |
| 42 |
|
$s = substr($s, 0, Kint_Renderer_Rich::$strlen_max).'...'; |
| 43 |
|
} |
| 44 |
|
$header .= $this->renderer->escape($s); |
| 45 |
|
} |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
$header = $this->renderer->renderHeaderWrapper($o, (bool) strlen($children), $header); |
src/Renderer/Text.php 1 location
|
@@ 157-162 (lines=6) @@
|
| 154 |
|
$output[] = '('.$this->escape($s).')'; |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
if (($s = $o->getValueShort()) !== null) { |
| 158 |
|
if (self::$strlen_max && Kint_Object_Blob::strlen($s) > self::$strlen_max) { |
| 159 |
|
$s = substr($s, 0, self::$strlen_max).'...'; |
| 160 |
|
} |
| 161 |
|
$output[] = $this->colorValue($this->escape($s)); |
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
return str_repeat(' ', $o->depth * $this->indent_width).implode(' ', $output); |
| 165 |
|
} |