Skip to content

Commit c110003

Browse files
committed
Fix: Do not reuse variable
1 parent 94aef9e commit c110003

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SpeedTrapListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ public function endTest(Test $test, float $time): void
5858
{
5959
if (!$test instanceof TestCase) return;
6060

61-
$time = $this->toMilliseconds($time);
61+
$timeInMilliseconds = $this->toMilliseconds($time);
6262
$threshold = $this->getSlowThreshold($test);
6363

64-
if ($this->isSlow($time, $threshold)) {
65-
$this->addSlowTest($test, $time);
64+
if ($this->isSlow($timeInMilliseconds, $threshold)) {
65+
$this->addSlowTest($test, $timeInMilliseconds);
6666
}
6767
}
6868

0 commit comments

Comments
 (0)