rector fixes

This commit is contained in:
2024-04-24 10:18:07 +02:00
parent e312929d86
commit d8b6cef7b4
4 changed files with 10 additions and 15 deletions

View File

@@ -104,18 +104,13 @@ class CSPersonController extends OneToOneEntityPersonCRUDController
protected function getTemplateFor($action, $entity, Request $request): string
{
switch ($action) {
case 'ps_situation_edit':
return '@ChillJob/CSPerson/personal_situation_edit.html.twig';
case 'dispositifs_edit':
return '@ChillJob/CSPerson/dispositifs_edit.html.twig';
case 'ps_situation_view':
return '@ChillJob/CSPerson/personal_situation_view.html.twig';
case 'dispositifs_view':
return '@ChillJob/CSPerson/dispositifs_view.html.twig';
default:
return parent::getTemplateFor($action, $entity, $request);
}
return match ($action) {
'ps_situation_edit' => '@ChillJob/CSPerson/personal_situation_edit.html.twig',
'dispositifs_edit' => '@ChillJob/CSPerson/dispositifs_edit.html.twig',
'ps_situation_view' => '@ChillJob/CSPerson/personal_situation_view.html.twig',
'dispositifs_view' => '@ChillJob/CSPerson/dispositifs_view.html.twig',
default => parent::getTemplateFor($action, $entity, $request),
};
}
protected function createFormFor(string $action, $entity, ?string $formClass = null, array $formOptions = []): FormInterface