Skip to content

Commit

Permalink
fixes unit tests, but I need to add some more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkingmedia committed Jun 27, 2016
1 parent dde3c15 commit 41289ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Shell/Helper/TableHelper.php
Expand Up @@ -78,10 +78,10 @@ protected function _rowSeparator($widths)
*/
protected function _render($row, $widths, $options = [])
{
if(empty($rows) || !is_array($row)) {
if(!$row || !is_array($row)) {
return;
}

$out = '';
foreach ($row as $i => $column) {
$pad = $widths[$i] - mb_strlen($column);
Expand All @@ -102,7 +102,7 @@ protected function _render($row, $widths, $options = [])
*/
public function output($rows)
{
if(empty($rows) || !is_array($rows)) {
if(!$rows || !is_array($rows)) {
return;
}

Expand All @@ -114,8 +114,8 @@ public function output($rows)
$this->_render(array_shift($rows), $widths, ['style' => $config['headerStyle']]);
$this->_rowSeparator($widths);
}
if(empty($rows)) {

if(!$rows) {
return;
}

Expand Down

0 comments on commit 41289ed

Please sign in to comment.