Skip to content

Commit

Permalink
Rename variable for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkary committed Oct 17, 2022
1 parent 058c5ca commit 5189798
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SpeedTrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ public function executeAfterSuccessfulTest(string $test, float $time): void
{
if (!$this->enabled) return;

$timeInMilliseconds = $this->toMilliseconds($time);
$timeMS = $this->toMilliseconds($time);
$threshold = $this->getSlowThreshold($test);

if ($this->isSlow($timeInMilliseconds, $threshold)) {
$this->addSlowTest($test, $timeInMilliseconds);
if ($this->isSlow($timeMS, $threshold)) {
$this->addSlowTest($test, $timeMS);
}
}

Expand Down

0 comments on commit 5189798

Please sign in to comment.