chore: code cleanup
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user