Skip to content

Commit d327250

Browse files
committed
Fix PSR-12 violation
1 parent 927d2e1 commit d327250

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

webapp/src/Controller/Jury/SubmissionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ protected function determineFileChanged(array $files, array $oldFiles): array
12401240
}
12411241
}
12421242
}
1243-
if($isNewFile) {
1243+
if ($isNewFile) {
12441244
$result['addedfiles'][] = $newfile;
12451245
}
12461246
}

webapp/src/Service/EventLogService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ public function addMissingStateEvents(Contest $contest): void
487487
$awards = [];
488488
$this->dj->withAllRoles(function () use ($url, &$awards) {
489489
$response = $this->dj->internalApiRequest($url);
490-
if ( !empty($response) ) $awards = Utils::jsonDecode($response);
490+
if (!empty($response)) {
491+
$awards = Utils::jsonDecode($response);
492+
}
491493
});
492494
foreach ($awards as $award) {
493495
$this->insertEvent($contest, 'awards', $award['id'], $award);

0 commit comments

Comments
 (0)