We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 09f516f + fc8d60f commit d55abb9Copy full SHA for d55abb9
1 file changed
lib/SimpleTable.php
@@ -77,7 +77,7 @@ function __construct()
77
78
// Padding
79
foreach ($cache as $col) {
80
- while ($col[2] < $max) {
+ while (count($col[2]) < $max) {
81
array_push($col[2], '');
82
}
83
@@ -141,7 +141,7 @@ public function draw()
141
142
$title = 0;
143
foreach ($this->columns as $column) {
144
- if ($title < count($column[0])) $title = count($column[2]);
+ if ($title < count($column[2])) $title = count($column[2]);
145
146
147
if ($title) {
@@ -263,7 +263,7 @@ public function row()
263
// Shortcut
264
if ($size < 0) return $this;
265
266
- for ($i = 0; $i < count($size) + 1; $i++) {
+ for ($i = 0; $i < $size + 1; $i++) {
267
if ($size <= count($texts)) break;
268
array_push($texts, '');
269
0 commit comments