[Console] Helper\Table->addRow optimization
This commit is contained in:
parent
d5e9de2f94
commit
9ea59ac531
@ -143,8 +143,9 @@ class TableHelper extends Helper
|
|||||||
{
|
{
|
||||||
$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")) {
|
||||||
|
Reference in New Issue
Block a user