From 72b9de7ad21b84ecb663cb75d327d15465988d45 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Fri, 27 Feb 2026 19:05:12 +0100 Subject: [PATCH] fix: use short class names in MarketplaceController (add use imports) Co-Authored-By: Claude Sonnet 4.6 --- src/Modules/Marketplace/MarketplaceController.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Modules/Marketplace/MarketplaceController.php b/src/Modules/Marketplace/MarketplaceController.php index 0c29886..8e492c4 100644 --- a/src/Modules/Marketplace/MarketplaceController.php +++ b/src/Modules/Marketplace/MarketplaceController.php @@ -10,6 +10,8 @@ use App\Core\Security\Csrf; use App\Core\Support\Flash; use App\Core\View\Template; use App\Modules\Auth\AuthService; +use App\Modules\Settings\IntegrationRepository; +use App\Modules\Settings\ShopProClient; final class MarketplaceController { @@ -18,8 +20,8 @@ final class MarketplaceController private readonly Translator $translator, private readonly AuthService $auth, private readonly MarketplaceRepository $marketplace, - private readonly \App\Modules\Settings\IntegrationRepository $integrationRepository, - private readonly \App\Modules\Settings\ShopProClient $shopProClient + private readonly IntegrationRepository $integrationRepository, + private readonly ShopProClient $shopProClient ) { } @@ -157,7 +159,7 @@ final class MarketplaceController } $csrfToken = (string) ($body['_token'] ?? ''); - if (!\App\Core\Security\Csrf::validate($csrfToken)) { + if (!Csrf::validate($csrfToken)) { return Response::json(['ok' => false, 'message' => 'Nieprawidłowy token CSRF.'], 403); }