Skip to content

Commit

Permalink
Merge branch 'test'
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Gich committed Mar 5, 2018
2 parents c1e10f3 + 781eb3d commit 7dd4360
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/AbstractFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,9 @@ protected function addRow($lb, $bm, $br, $pad, $row = []) {
$maxLength = $this->table->getColumnsMaxLength($i);
$this->output .= $delimiter;
if (count($row)) {
$spaces = str_repeat($pad, $maxLength - strlen($row[$i]));
$this->output .= " {$row[$i]}{$spaces} ";
$cell = isset($row[$i]) ? $row[$i] : '';
$spaces = str_repeat($pad, $maxLength - strlen($cell));
$this->output .= " {$cell}{$spaces} ";
} else {
$this->output .= str_repeat($pad, $maxLength + 2);
}
Expand Down

0 comments on commit 7dd4360

Please sign in to comment.