Skip to content

Commit

Permalink
Report/Info: fix "undefined variable" error.
Browse files Browse the repository at this point in the history
This partially reverts the change made to this particular file in e9ebf52

The `floor( $countWidth / 3)` was causing an _undefined variable_ notice.
  • Loading branch information
jrfnl committed Feb 4, 2020
1 parent fbf67ef commit dfc265d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Reports/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ public function generate(

// Length of the total string, plus however many
// thousands separators there are.
$countWidth = (strlen($totalCount) + floor($countWidth / 3));
$countWidth = strlen($totalCount);
$nrOfThousandSeps = floor($countWidth / 3);
$countWidth += $nrOfThousandSeps;

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

0 comments on commit dfc265d

Please sign in to comment.