Skip to content

Commit

Permalink
Changelog for #2853
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Feb 9, 2020
1 parent 67c3859 commit 5bb5f83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
<notes>
- Fixed bug #2848 : PSR12.Files.FileHeader false positive for file with mixed PHP and HTML and no file header
- Fixed bug #2849 : Generic.WhiteSpace.ScopeIndent false positive with arrow function inside array
- Fixed bug #2853 : Undefined variable error when using Info report
-- Thanks to Juliette Reinders Folmer for the patch
</notes>
<contents>
<dir name="/">
Expand Down
6 changes: 3 additions & 3 deletions src/Reports/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ public function generate(

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

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

0 comments on commit 5bb5f83

Please sign in to comment.