Neos\Flow\Error\AbstractExceptionHandler::renderExceptionDetailCli PHP Méthode

renderExceptionDetailCli() protected méthode

Renders the given $value word-wrapped and prefixed with $label
protected renderExceptionDetailCli ( string $label, string $value ) : string
$label string
$value string
Résultat string
    protected function renderExceptionDetailCli($label, $value)
    {
        $result = '  <b>' . $label . ': </b>';
        $result .= wordwrap($value, 75, PHP_EOL . str_repeat(' ', strlen($label) + 4), true);
        $result .= PHP_EOL;
        return $result;
    }