[Console] Helper\Table->addRow optimization

This commit is contained in:
Warnar Boekkooi 2015-01-10 13:50:07 +01:00
parent b52e0d19c1
commit 5d3a1fc4c5

View File

@ -174,8 +174,9 @@ class Table
$this->rows[] = array_values($row); $this->rows[] = array_values($row);
$keys = array_keys($this->rows); end($this->rows);
$rowKey = array_pop($keys); $rowKey = key($this->rows);
reset($this->rows);
foreach ($row as $key => $cellValue) { foreach ($row as $key => $cellValue) {
if (!strstr($cellValue, "\n")) { if (!strstr($cellValue, "\n")) {