From 8cbfe16c244d8b38712253d8d96d8992ffa0e1a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 25 Nov 2022 17:02:57 +0100 Subject: [PATCH] DX: Fix cs --- .../ChillCalendarBundle/Controller/CalendarDocController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillCalendarBundle/Controller/CalendarDocController.php b/src/Bundle/ChillCalendarBundle/Controller/CalendarDocController.php index ba7951225..1f6b42dea 100644 --- a/src/Bundle/ChillCalendarBundle/Controller/CalendarDocController.php +++ b/src/Bundle/ChillCalendarBundle/Controller/CalendarDocController.php @@ -24,6 +24,7 @@ use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Symfony\Component\Security\Core\Security; use Symfony\Component\Serializer\SerializerInterface; use Symfony\Component\Templating\EngineInterface; +use UnexpectedValueException; class CalendarDocController { @@ -87,14 +88,16 @@ class CalendarDocController 'calendar' => $calendar, ]) ); + case 'accompanying_period': return new Response( $this->engine->render('@ChillCalendar/CalendarDoc/pick_template_accompanying_period.html.twig', [ 'calendar' => $calendar, ]) ); + default: - throw new \UnexpectedValueException("calendar context not expected : " . $calendar->getContext()); + throw new UnexpectedValueException('calendar context not expected : ' . $calendar->getContext()); } } }