Skip to content

Commit f460fbe

Browse files
Fix codestyle errors
1 parent eedd68a commit f460fbe

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

webapp/src/Entity/Contest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,9 @@ public function validate(ExecutionContextInterface $context): void
12801280
{
12811281
foreach (['Activate', 'Deactivate', 'Start', 'End', 'Freeze', 'Unfreeze'] as $timeString) {
12821282
$tmpValue = $this->{'get' . $timeString . 'timeString'}();
1283-
if ($tmpValue === null) continue;
1283+
if ($tmpValue === null) {
1284+
continue;
1285+
}
12841286
try {
12851287
$this->checkValidTimeString($tmpValue);
12861288
} catch (Exception $e) {

webapp/src/Service/DOMJudgeService.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,8 +1801,7 @@ public function checkNewVersion(): string|false {
18011801
}
18021802
}
18031803
}
1804-
}
1805-
elseif ($this->config->get('check_new_version', false) === UpdateStrategy::Strategy_major_release) {
1804+
} elseif ($this->config->get('check_new_version', false) === UpdateStrategy::Strategy_major_release) {
18061805
/* Steer towards the latest version directly
18071806
* So the expected path would be:
18081807
* DJ6.0.0 -> DJ9.1.2

webapp/src/Service/EventLogService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ public function addMissingStateEvents(Contest $contest): void
488488
$this->dj->withAllRoles(function () use ($url, &$awards) {
489489
$response = $this->dj->internalApiRequest($url);
490490
if (!empty($response)) {
491-
$awards = Utils::jsonDecode($response);
491+
$awards = Utils::jsonDecode($response);
492492
}
493493
});
494494
foreach ($awards as $award) {

webapp/src/Utils/Utils.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,10 +1082,10 @@ public static function extendMaxExecutionTime(int $minimumMaxExecutionTime): voi
10821082
/**
10831083
* Call ob_flush() unless the top-level output buffer does not allow it.
10841084
*/
1085-
public static function ob_flush_if_possible(): bool
1085+
public static function ob_flush_if_possible(): bool // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps
10861086
{
10871087
$status = ob_get_status();
1088-
if ( empty($status) || ($status['flags'] & PHP_OUTPUT_HANDLER_CLEANABLE) ) {
1088+
if (empty($status) || ($status['flags'] & PHP_OUTPUT_HANDLER_CLEANABLE)) {
10891089
return ob_flush();
10901090
}
10911091
return false;

0 commit comments

Comments
 (0)