src/Ace/Util/AsciiTable.php
/**
	 * Renders the rows in the table.
	 *
	 * @param OutputInterface $out
	 * @return void
	 */
Renders the rows in the table.
@param OutputInterface $out
@return void
Renders the rows in the table . @param OutputInterface $out @return void
protected function renderRows(OutputInterface $out) {
		foreach ($this->rows as $row) {
			foreach ($this->columns as $index => $column) {
				$value = $row[$index];
				$valueWidth = $this->getTextWidth($value);
				$columnWidth = $this->getColumnWidth($index);
				$padding = str_repeat(' ', $columnWidth - $valueWidth);
				$out->write($value . $padding);
			}
			$out->writeln('');
		}
		if (empty($this->rows)) {
			$out->writeln($this->noResultsText);
		}
	}
protected function renderRows ( OutputInterface $ out ) { foreach ( $ this -> rows as $ row ) { foreach ( $ this -> columns as $ index => $ column ) { $ value = $ row [ $ index ] ; $ valueWidth = $ this -> getTextWidth ( $ value ) ; $ columnWidth = $ this -> getColumnWidth ( $ index ) ; $ padding = str_repeat ( ' ' , $ columnWidth - $ valueWidth ) ; $ out -> write ( $ value . $ padding ) ; } $ out -> writeln ( '' ) ; } if ( empty ( $ this -> rows ) ) { $ out -> writeln ( $ this -> noResultsText ) ; } }
Renders the rows in the table.
Renders the rows in the table .