chore: code cleanup

This commit is contained in:
Björn Fromme
2026-02-05 17:45:54 +01:00
parent 2f9930a240
commit 6adc0769c7
4 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ class DayTimeUtility
return 'abends';
} elseif ($time >= '20:00' && $time <= '23:59') {
return 'nachts';
} else {
}
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
{
+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
{
@@ -1252,7 +1252,7 @@ class ParticipantFieldOptionsProvider extends AbstractFieldOptionsProvider
}
return [...$otherServices, $regularPkw];
} else {
}
// Discounted has availability, show only discounted (hide regular)
// But preserve regular if participant already has it selected
if ($preserveRegular) {
@@ -1261,7 +1261,6 @@ class ParticipantFieldOptionsProvider extends AbstractFieldOptionsProvider
return [...$otherServices, $discountedPkw];
}
}
// Fallback: return all services if we don't have the expected discount/regular pair
return [...$otherServices, ...$pkwServices];