chore: code cleanup
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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,15 +1252,14 @@ class ParticipantFieldOptionsProvider extends AbstractFieldOptionsProvider
|
|||||||
}
|
}
|
||||||
|
|
||||||
return [...$otherServices, $regularPkw];
|
return [...$otherServices, $regularPkw];
|
||||||
} else {
|
|
||||||
// Discounted has availability, show only discounted (hide regular)
|
|
||||||
// But preserve regular if participant already has it selected
|
|
||||||
if ($preserveRegular) {
|
|
||||||
return [...$otherServices, $discountedPkw, $regularPkw];
|
|
||||||
}
|
|
||||||
|
|
||||||
return [...$otherServices, $discountedPkw];
|
|
||||||
}
|
}
|
||||||
|
// Discounted has availability, show only discounted (hide regular)
|
||||||
|
// But preserve regular if participant already has it selected
|
||||||
|
if ($preserveRegular) {
|
||||||
|
return [...$otherServices, $discountedPkw, $regularPkw];
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user