From a97a22d4642462b33c658c7b5a33647aa1a2ac93 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 4 Dec 2023 16:24:05 +0100 Subject: [PATCH] php cs fixer --- .../ChillMainBundle/Controller/NewsItemHistoryController.php | 1 - .../DependencyInjection/ChillMainExtension.php | 4 ++-- .../ChillMainBundle/Templating/Entity/NewsItemRender.php | 4 ---- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Controller/NewsItemHistoryController.php b/src/Bundle/ChillMainBundle/Controller/NewsItemHistoryController.php index ed84b6130..b79812464 100644 --- a/src/Bundle/ChillMainBundle/Controller/NewsItemHistoryController.php +++ b/src/Bundle/ChillMainBundle/Controller/NewsItemHistoryController.php @@ -16,7 +16,6 @@ use Chill\MainBundle\Pagination\PaginatorFactory; use Chill\MainBundle\Repository\NewsItemRepository; use Chill\MainBundle\Templating\Listing\FilterOrderHelper; use Chill\MainBundle\Templating\Listing\FilterOrderHelperFactoryInterface; -use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php b/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php index aa025bdfe..c91f03516 100644 --- a/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php +++ b/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php @@ -564,7 +564,7 @@ class ChillMainExtension extends Extension implements ], 'view' => [ 'role' => 'ROLE_ADMIN', - 'template' => '@ChillMain/NewsItem/view_admin.html.twig' + 'template' => '@ChillMain/NewsItem/view_admin.html.twig', ], 'edit' => [ 'role' => 'ROLE_ADMIN', @@ -573,7 +573,7 @@ class ChillMainExtension extends Extension implements 'delete' => [ 'role' => 'ROLE_ADMIN', 'template' => '@ChillMain/NewsItem/delete.html.twig', - ] + ], ], ], ], diff --git a/src/Bundle/ChillMainBundle/Templating/Entity/NewsItemRender.php b/src/Bundle/ChillMainBundle/Templating/Entity/NewsItemRender.php index 1faaf4213..fd2e2e211 100644 --- a/src/Bundle/ChillMainBundle/Templating/Entity/NewsItemRender.php +++ b/src/Bundle/ChillMainBundle/Templating/Entity/NewsItemRender.php @@ -12,16 +12,12 @@ declare(strict_types=1); namespace Chill\MainBundle\Templating\Entity; use Chill\MainBundle\Entity\NewsItem; -use Chill\MainBundle\Templating\Entity\ChillEntityRenderInterface; -use Chill\MainBundle\Templating\TranslatableStringHelper; /** * @implements ChillEntityRenderInterface */ final readonly class NewsItemRender implements ChillEntityRenderInterface { - public function __construct(private TranslatableStringHelper $translatableStringHelper, private \Twig\Environment $engine) {} - public function renderBox($entity, array $options): string { return '';