mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-19 20:34:28 +00:00
Adding Psalm analysis
This commit is contained in:
@ -11,11 +11,9 @@ class ScheduleLoop extends Schedule
|
||||
|
||||
public function visit(int $depth = -1, int $maxDepth = 0): float
|
||||
{
|
||||
$totalIterations = 1;
|
||||
$delta = $this->scheduleToLoop->visit($depth + 1, $maxDepth);
|
||||
while ($delta > $this->maxDelta) {
|
||||
$delta = $this->scheduleToLoop->visit($depth + 1, $maxDepth);
|
||||
$totalIterations++;
|
||||
}
|
||||
|
||||
return $delta;
|
||||
|
Reference in New Issue
Block a user