Skip to content
Permalink
Browse files

Revert "Fixes a bug for empty strings."

This reverts commit 75ae341.
  • Loading branch information...
thinkingmedia
thinkingmedia committed Jan 6, 2017
1 parent 75ae341 commit 9520f5912a3678eb8eeec8da9ab07813cd0a87c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Shell/Helper/TableHelper.php
@@ -45,7 +45,7 @@ protected function _calculateWidths($rows)
foreach ($rows as $line) {
foreach ($line as $k => $v) {
$columnLength = mb_strwidth($line[$k]);
if ($columnLength >= (isset($widths[$k]) ? $widths[$k] : 0)) {
if ($columnLength > (isset($widths[$k]) ? $widths[$k] : 0)) {
$widths[$k] = $columnLength;
}
}

0 comments on commit 9520f59

Please sign in to comment.
You can’t perform that action at this time.