chore: code cleanup

This commit is contained in:
Björn Fromme
2026-03-16 12:02:59 +01:00
parent bbc011ddb9
commit 1f27c744d2
4 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ class DayTimeUtility
return 'abends'; return 'abends';
} elseif ($time >= '20:00' && $time <= '23:59') { } elseif ($time >= '20:00' && $time <= '23:59') {
return 'nachts'; return 'nachts';
} else { }
return null; return null;
} }
} }
}
@@ -36,7 +36,7 @@ class DraftBackfillBookingNumberCommand extends Command
} }
/** /**
* @see \Symfony\Component\Console\Command\Command::execute() * @see Command::execute()
*/ */
protected function execute(InputInterface $input, OutputInterface $output): int protected function execute(InputInterface $input, OutputInterface $output): int
{ {
+1 -1
View File
@@ -33,7 +33,7 @@ class DraftCleanupCommand extends Command
} }
/** /**
* @see \Symfony\Component\Console\Command\Command::execute() * @see Command::execute()
*/ */
protected function execute(InputInterface $input, OutputInterface $output): int protected function execute(InputInterface $input, OutputInterface $output): int
{ {
@@ -1252,7 +1252,7 @@ class ParticipantFieldOptionsProvider extends AbstractFieldOptionsProvider
} }
return [...$otherServices, $regularPkw]; return [...$otherServices, $regularPkw];
} else { }
// Discounted has availability, show only discounted (hide regular) // Discounted has availability, show only discounted (hide regular)
// But preserve regular if participant already has it selected // But preserve regular if participant already has it selected
if ($preserveRegular) { if ($preserveRegular) {
@@ -1261,7 +1261,6 @@ class ParticipantFieldOptionsProvider extends AbstractFieldOptionsProvider
return [...$otherServices, $discountedPkw]; return [...$otherServices, $discountedPkw];
} }
}
// Fallback: return all services if we don't have the expected discount/regular pair // Fallback: return all services if we don't have the expected discount/regular pair
return [...$otherServices, ...$pkwServices]; return [...$otherServices, ...$pkwServices];