Skip to content

Commit 67c3859

Browse files
committed
Merge branch 'feature/info-report-undefined-var' of https://github.com/jrfnl/PHP_CodeSniffer
2 parents 2e3a010 + dfc265d commit 67c3859

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)