1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 17:27:28 +01:00
psalm/src/Psalm/Progress
Tyson Andre 6612bb74a1 Use floor() instead of round() for long progress percentage (#2634)
PHPUnit and many other applications use floor.
Otherwise, the second-last lines would show 100% despite not being
complete.

```
\sprintf(
    ' %' . $this->numTestsWidth . 'd / %' .
    $this->numTestsWidth . 'd (%3s%%)',
    $this->numTestsRun,
    $this->numTests,
    \floor(($this->numTestsRun / $this->numTests) * 100)
)
```
2020-01-16 15:57:09 -05:00
..
DebugProgress.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
DefaultProgress.php Apply PHPCS fixes 2019-07-05 16:27:53 -04:00
LongProgress.php Use floor() instead of round() for long progress percentage (#2634) 2020-01-16 15:57:09 -05:00
Progress.php Add framework for taint analysis to Psalm 2019-08-04 10:37:36 -04:00
VoidProgress.php