Skip to content

Commit

Permalink
Revert "Fixes a bug for empty strings."
Browse files Browse the repository at this point in the history
This reverts commit 75ae341.
  • Loading branch information
thinkingmedia committed Jan 6, 2017
1 parent 75ae341 commit 9520f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shell/Helper/TableHelper.php
Expand Up @@ -45,7 +45,7 @@ protected function _calculateWidths($rows)
foreach ($rows as $line) { foreach ($rows as $line) {
foreach ($line as $k => $v) { foreach ($line as $k => $v) {
$columnLength = mb_strwidth($line[$k]); $columnLength = mb_strwidth($line[$k]);
if ($columnLength >= (isset($widths[$k]) ? $widths[$k] : 0)) { if ($columnLength > (isset($widths[$k]) ? $widths[$k] : 0)) {
$widths[$k] = $columnLength; $widths[$k] = $columnLength;
} }
} }
Expand Down

0 comments on commit 9520f59

Please sign in to comment.