Skip to content

Commit

Permalink
Add a decimal separator to the row count displayed in the progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
guvra committed Mar 5, 2024
1 parent 89e3658 commit aee0cdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Console/Helper/DumpInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ private function formatValue(mixed $value): string
*/
private function formatRowCount(int $rowCount): string
{
return $rowCount > 1 ? sprintf('%d rows', $rowCount) : sprintf('%d row', $rowCount);
$formatted = number_format($rowCount, 0, '.', ' ');

return $rowCount > 1 ? $formatted . ' rows' : $formatted . ' row';
}
}

0 comments on commit aee0cdd

Please sign in to comment.