src/Ace/Util/AsciiTable.php
/**
	 * Renders all columns of the table header.
	 *
	 * @param OutputInterface $out
	 * @return void
	 */
Renders all columns of the table header.
@param OutputInterface $out
@return void
Renders all columns of the table header . @param OutputInterface $out @return void
protected function renderHeader(OutputInterface $out) {
		foreach ($this->columns as $index => $column) {
			$titleWidth = $this->getTextWidth($column->title);
			$columnWidth = $this->getColumnWidth($index);
			$padding = str_repeat(' ', $columnWidth - $titleWidth);
			$out->write($column->title . $padding);
		}
		$out->writeln('');
	}
protected function renderHeader ( OutputInterface $ out ) { foreach ( $ this -> columns as $ index => $ column ) { $ titleWidth = $ this -> getTextWidth ( $ column -> title ) ; $ columnWidth = $ this -> getColumnWidth ( $ index ) ; $ padding = str_repeat ( ' ' , $ columnWidth - $ titleWidth ) ; $ out -> write ( $ column -> title . $ padding ) ; } $ out -> writeln ( '' ) ; }
Renders all columns of the table header.
Renders all columns of the table header .