From 30e1afc426be8fea7a774cc6289b211978c24111 Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Sat, 14 Sep 2024 19:44:17 +0200 Subject: [PATCH] [AllBundles] Fix php codestyle issues --- src/Kunstmaan/CookieBundle/Controller/LegalController.php | 2 +- .../MediaBundle/AdminList/FilterType/SubFolderFilterType.php | 2 +- src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Kunstmaan/CookieBundle/Controller/LegalController.php b/src/Kunstmaan/CookieBundle/Controller/LegalController.php index 8cc96940dc..3370d44d34 100644 --- a/src/Kunstmaan/CookieBundle/Controller/LegalController.php +++ b/src/Kunstmaan/CookieBundle/Controller/LegalController.php @@ -29,7 +29,7 @@ public function __construct(LegalCookieHelper $cookieHelper, EntityManagerInterf #[Route(path: '/modal/{internal_name}', name: 'kunstmaancookiebundle_legal_modal')] public function switchTabAction( Request $request, - #[MapEntity(expr: 'repository.getNodeByInternalName(internal_name)')] Node $node + #[MapEntity(expr: 'repository.getNodeByInternalName(internal_name)')] Node $node, ): Response { $page = $node->getNodeTranslation($request->getLocale())->getRef($this->em); diff --git a/src/Kunstmaan/MediaBundle/AdminList/FilterType/SubFolderFilterType.php b/src/Kunstmaan/MediaBundle/AdminList/FilterType/SubFolderFilterType.php index 575b171bf3..485f871b3d 100644 --- a/src/Kunstmaan/MediaBundle/AdminList/FilterType/SubFolderFilterType.php +++ b/src/Kunstmaan/MediaBundle/AdminList/FilterType/SubFolderFilterType.php @@ -12,7 +12,7 @@ class SubFolderFilterType extends AbstractORMFilterType { public function __construct( private Folder $folder, - string $columnName + string $columnName, ) { parent::__construct($columnName); } diff --git a/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php b/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php index fe9ae1709a..cc0efc7521 100644 --- a/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php +++ b/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php @@ -43,7 +43,6 @@ use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;