[FrameworkBundle] tweaked reference dumper command (see #7093)
This commit is contained in:
parent
7d143aac42
commit
18b139d41c
@ -236,10 +236,12 @@ EOF
|
|||||||
$default = (string) $default != '' ? ' '.$default : '';
|
$default = (string) $default != '' ? ' '.$default : '';
|
||||||
$comments = count($comments) ? '# '.implode(', ', $comments) : '';
|
$comments = count($comments) ? '# '.implode(', ', $comments) : '';
|
||||||
|
|
||||||
$text = sprintf('%-20s %s %s', $node->getName().':', $default, $comments);
|
$text = rtrim(sprintf('%-20s %s %s', $node->getName() . ':', $default, $comments), ' ');
|
||||||
|
|
||||||
if ($info = $node->getInfo()) {
|
if ($info = $node->getInfo()) {
|
||||||
$this->outputLine('');
|
$this->outputLine('');
|
||||||
|
// indenting multi-line info
|
||||||
|
$info = str_replace("\n", sprintf("\n%" . $depth * 4 . "s# ", ' '), $info);
|
||||||
$this->outputLine('# '.$info, $depth * 4);
|
$this->outputLine('# '.$info, $depth * 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user