contents) as $line) { $docstring[] = \trim($line); } $docstring = \implode("\n", $docstring); $location = []; if ($r->class) { $location[] = 'Inherited from '.$this->renderer->escape($r->class); } if ($r->file && $r->line) { $location[] = 'Defined in '.$this->renderer->escape(Kint::shortenPath($r->file)).':'.((int) $r->line); } $location = \implode("\n", $location); if ($location) { if (\strlen($docstring)) { $docstring .= "\n\n"; } $location = ''.$location.''; } elseif (0 === \strlen($docstring)) { return ''; } return '
'.$this->renderer->escape($docstring).$location.'
'; } }