Skip to content

Commit 74a851b

Browse files
Keep one line if statement but add PHPCS ignore
1 parent b7ba747 commit 74a851b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

webapp/src/Entity/Contest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,9 +1277,7 @@ public function validate(ExecutionContextInterface $context): void
12771277
{
12781278
foreach (['Activate', 'Deactivate', 'Start', 'End', 'Freeze', 'Unfreeze'] as $timeString) {
12791279
$tmpValue = $this->{'get' . $timeString . 'timeString'}();
1280-
if ($tmpValue === null) {
1281-
continue;
1282-
}
1280+
if ($tmpValue === null) continue; // phpcs:ignore Generic.ControlStructures.InlineControlStructure.NotAllowed
12831281
try {
12841282
$this->checkValidTimeString($tmpValue);
12851283
} catch (Exception $e) {

0 commit comments

Comments
 (0)