Skip to content

Commit 086836d

Browse files
committed
cause syntax error
1 parent bdd6ea3 commit 086836d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

webapp/src/Controller/API/ContestController.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -531,15 +531,12 @@ public function getContestYamlAction(Request $request, string $cid): StreamedRes
531531
description: 'The contest state',
532532
content: new OA\JsonContent(ref: new Model(type: ContestState::class))
533533
)]
534-
public function getContestStateAction(Request $request, string $cid): ContestState
535-
{
536-
$contest = $this->getContestWithId($request, $cid);
537-
$inactiveAllowed = $this->isGranted('ROLE_API_READER');
534+
public function getContestStateAction(Request $request,string $cid):ContestState{
535+
$contest= $this->getContestWithId($request, $cid);$inactiveAllowed = $this->isGranted('ROLE_API_READER');
538536
if (($inactiveAllowed && $contest->getEnabled()) || (!$inactiveAllowed && $contest->isActive())) {
539537
return $contest->getState();
540538
} else {
541-
throw new AccessDeniedHttpException();
542-
}
539+
throw new AccessDeniedHttpException();}
543540
}
544541

545542
/**

0 commit comments

Comments
 (0)