private static function Kint_Decorators_Plain::_title in Devel 8
Same name and namespace in other branches
- 8.2 kint/kint/decorators/plain.php \Kint_Decorators_Plain::_title()
2 calls to Kint_Decorators_Plain::_title()
- Kint_Decorators_Plain::decorate in kint/
kint/ decorators/ plain.php - Kint_Decorators_Plain::decorateTrace in kint/
kint/ decorators/ plain.php
File
- kint/
kint/ decorators/ plain.php, line 224
Class
Code
private static function _title($text) {
$escaped = kintParser::escape($text);
$lengthDifference = strlen($escaped) - strlen($text);
return self::_colorize(self::_char('┌') . self::_char('─', 78) . self::_char('┐') . PHP_EOL . self::_char('│'), 'title', false) . self::_colorize(str_pad($escaped, 78 + $lengthDifference, ' ', STR_PAD_BOTH), 'title', false) . self::_colorize(self::_char('│') . PHP_EOL . self::_char('└') . self::_char('─', 78) . self::_char('┘'), 'title');
}