Commit
This commit is contained in:
parent
f4d9562b48
commit
3deb8b92b2
@ -101,7 +101,7 @@ class Team
|
|||||||
|
|
||||||
public function setRounds(int $rounds): Self
|
public function setRounds(int $rounds): Self
|
||||||
{
|
{
|
||||||
if ($rounds > 9999)
|
if ($rounds > 99999)
|
||||||
{
|
{
|
||||||
throw new InvalidArgumentException("Too many rounds!");
|
throw new InvalidArgumentException("Too many rounds!");
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ class BatonReader
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
$team->rounds += 1;
|
$team->setRounds($team->rounds + 1);
|
||||||
$this->team_mapper->update($team);
|
$this->team_mapper->update($team);
|
||||||
|
|
||||||
if ($team->best_time === NULL)
|
if ($team->best_time === NULL)
|
||||||
|
Reference in New Issue
Block a user