if ($example && !\
is_array($example)) { $comments[] = 'Example: '.Inline::
dump($example);
} $default = '' !=
(string) $default ? ' '.
$default : '';
$comments = \
count($comments) ? '# '.
implode(', ',
$comments) : '';
$key =
$prototypedArray ? '-' :
$node->
getName().':';
$text =
rtrim(sprintf('%-21s%s %s',
$key,
$default,
$comments), ' '
);
if ($node instanceof BaseNode &&
$info =
$node->
getInfo()) { $this->
writeLine(''
);
// indenting multi-line info
$info =
str_replace("\n",
sprintf("\n%".
($depth * 4
).'s# ', ' '
),
$info);
$this->
writeLine('# '.
$info,
$depth * 4
);
} $this->
writeLine($text,
$depth * 4
);
// output defaults
if ($defaultArray) { $this->
writeLine(''
);