private function Table::renderRowSeparator in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Helper/Table.php \Symfony\Component\Console\Helper\Table::renderRowSeparator()
Renders horizontal header separator.
Example: +-----+-----------+-------+
1 call to Table::renderRowSeparator()
- Table::render in vendor/
symfony/ console/ Helper/ Table.php - Renders table to output.
File
- vendor/
symfony/ console/ Helper/ Table.php, line 237
Class
- Table
- Provides helpers to display a table.
Namespace
Symfony\Component\Console\HelperCode
private function renderRowSeparator() {
if (0 === ($count = $this->numberOfColumns)) {
return;
}
if (!$this->style
->getHorizontalBorderChar() && !$this->style
->getCrossingChar()) {
return;
}
$markup = $this->style
->getCrossingChar();
for ($column = 0; $column < $count; ++$column) {
$markup .= str_repeat($this->style
->getHorizontalBorderChar(), $this
->getColumnWidth($column)) . $this->style
->getCrossingChar();
}
$this->output
->writeln(sprintf($this->style
->getBorderFormat(), $markup));
}