mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 03:23:48 +00:00
rector fixes
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user