Skip to content

Commit 56954f1

Browse files
Keep one line if statement but add PHPCS ignore
1 parent 78b8e72 commit 56954f1

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
@@ -1280,9 +1280,7 @@ 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) {
1284-
continue;
1285-
}
1283+
if ($tmpValue === null) continue; // phpcs:ignore Generic.ControlStructures.InlineControlStructure.NotAllowed
12861284
try {
12871285
$this->checkValidTimeString($tmpValue);
12881286
} catch (Exception $e) {

0 commit comments

Comments
 (0)