Skip to content

Commit 632d31a

Browse files
committed
Rename function for clarity
Fixes: #2510
1 parent 20d66ed commit 632d31a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

webapp/src/Service/AwardService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected function loadAwards(Contest $contest, Scoreboard $scoreboard): void
5757

5858
$additionalBronzeMedals = $contest->getB() ?? 0;
5959
// Do not consider additional bronze medals until the contest is unfrozen.
60-
if (!$scoreboard->isRestricted()) {
60+
if (!$scoreboard->hasRestrictedAccess()) {
6161
$additionalBronzeMedals = 0;
6262
}
6363

webapp/src/Utils/Scoreboard/Scoreboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(
5151
/**
5252
* @return bool Whether this Scoreboard has restricted access (either a jury member can see, or after unfreeze).
5353
*/
54-
public function isRestricted(): bool
54+
public function hasRestrictedAccess(): bool
5555
{
5656
return $this->restricted;
5757
}

0 commit comments

Comments
 (0)