Skip to content

Commit dfc265d

Browse files
committed
Report/Info: fix "undefined variable" error.
This partially reverts the change made to this particular file in e9ebf52 The `floor( $countWidth / 3)` was causing an _undefined variable_ notice.
1 parent fbf67ef commit dfc265d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Reports/Info.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ public function generate(
116116

117117
// Length of the total string, plus however many
118118
// thousands separators there are.
119-
$countWidth = (strlen($totalCount) + floor($countWidth / 3));
119+
$countWidth = strlen($totalCount);
120+
$nrOfThousandSeps = floor($countWidth / 3);
121+
$countWidth += $nrOfThousandSeps;
120122

121123
// Account for 'total' line.
122124
$valueWidth = max(5, $valueWidth);

0 commit comments

Comments
 (0)