Skip to content

Commit

Permalink
use count()
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkingmedia committed Jun 27, 2016
1 parent d751087 commit 186733a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Shell/Helper/TableHelper.php
Expand Up @@ -78,7 +78,7 @@ protected function _rowSeparator($widths)
*/
protected function _render($row, $widths, $options = [])
{
if (!$row || !is_array($row)) {
if (!is_array($row) || count($row) === 0) {
return;
}

Expand All @@ -102,7 +102,7 @@ protected function _render($row, $widths, $options = [])
*/
public function output($rows)
{
if (!$rows || !is_array($rows)) {
if (!is_array($rows) || count($rows) === 0) {
return;
}

Expand Down

0 comments on commit 186733a

Please sign in to comment.