Beispiel #1
0
 /**
  * Renders horizontal header separator.
  *
  * Example: +-----+-----------+-------+
  */
 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->columnWidths[$column]) . $this->style->getCrossingChar();
     }
     $this->output->writeln(sprintf($this->style->getBorderFormat(), $markup));
 }
Beispiel #2
0
 private function getHiddenSeparator()
 {
     return str_repeat($this->style->getHorizontalBorderChar(), $this->getHiddenCellWidth()) . $this->style->getCrossingChar();
 }