diff --git a/src/Bundle/ChillMainBundle/Controller/SavedExportController.php b/src/Bundle/ChillMainBundle/Controller/SavedExportController.php index 2a07f2ac7..bce09488a 100644 --- a/src/Bundle/ChillMainBundle/Controller/SavedExportController.php +++ b/src/Bundle/ChillMainBundle/Controller/SavedExportController.php @@ -118,7 +118,7 @@ final readonly class SavedExportController public function duplicate(SavedExport $previousSavedExport, Request $request): Response { if (!$this->security->isGranted(SavedExportVoter::GENERATE, $previousSavedExport)) { - throw new AccessDeniedHttpException("Not allowed to see this saved export"); + throw new AccessDeniedHttpException('Not allowed to see this saved export'); } $user = $this->security->getUser(); @@ -135,7 +135,7 @@ final readonly class SavedExportController ->setTitle( $request->query->has('title') ? $request->query->get('title') : - $previousSavedExport->getTitle() . ' (' . $this->translator->trans('saved_export.Duplicated') . ' ' . (new \DateTimeImmutable('now'))->format('d-m-Y H:i:s') . ')' + $previousSavedExport->getTitle().' ('.$this->translator->trans('saved_export.Duplicated').' '.(new \DateTimeImmutable('now'))->format('d-m-Y H:i:s').')' ); return $this->handleEdit($savedExport, $request); @@ -207,15 +207,15 @@ final readonly class SavedExportController public function updateOptionsFromGeneration(SavedExport $savedExport, ExportGeneration $exportGeneration, Request $request): Response { if (!$this->security->isGranted(SavedExportVoter::EDIT, $savedExport)) { - throw new AccessDeniedHttpException("You are not allowed to access this saved export"); + throw new AccessDeniedHttpException('You are not allowed to access this saved export'); } if (!$this->security->isGranted(ExportGenerationVoter::VIEW, $exportGeneration)) { - throw new AccessDeniedHttpException("You are not allowed to access this export generation"); + throw new AccessDeniedHttpException('You are not allowed to access this export generation'); } if ($savedExport->getExportAlias() !== $exportGeneration->getExportAlias()) { - throw new UnprocessableEntityHttpException("export alias does not match"); + throw new UnprocessableEntityHttpException('export alias does not match'); } $savedExport->setOptions($exportGeneration->getOptions()); @@ -224,7 +224,7 @@ final readonly class SavedExportController $session = $request->getSession(); if ($session instanceof Session) { - $session->getFlashBag()->add('success', new TranslatableMessage("saved_export.Options updated successfully")); + $session->getFlashBag()->add('success', new TranslatableMessage('saved_export.Options updated successfully')); } return new RedirectResponse(