From 380d00f34cf77821150a62f046c7d4d89a2a6035 Mon Sep 17 00:00:00 2001 From: Pavel Buchnev Date: Mon, 12 Aug 2024 10:52:36 +0400 Subject: [PATCH] Fixes CS --- app/src/Interfaces/Http/Controller/Auth/LoginAction.php | 2 -- rector.php | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/Interfaces/Http/Controller/Auth/LoginAction.php b/app/src/Interfaces/Http/Controller/Auth/LoginAction.php index a065a58..f818ea5 100644 --- a/app/src/Interfaces/Http/Controller/Auth/LoginAction.php +++ b/app/src/Interfaces/Http/Controller/Auth/LoginAction.php @@ -13,7 +13,6 @@ use Spiral\Http\Exception\ClientException\UnauthorizedException; use Spiral\Http\ResponseWrapper; use Spiral\Router\Annotation\Route; -use Spiral\Session\SessionScope; final readonly class LoginAction { @@ -27,7 +26,6 @@ public function __invoke( AuthScope $authScope, TokenStorageInterface $tokens, SuccessRedirect $successRedirect, - SessionScope $session, ): ResponseInterface { if (!$auth->isAuthenticated()) { $url = $auth->getLoginUrl(); diff --git a/rector.php b/rector.php index 8422b30..612a7e0 100644 --- a/rector.php +++ b/rector.php @@ -38,6 +38,12 @@ RemoveUnusedVariableInCatchRector::class, ClosureToArrowFunctionRector::class, ]) + ->withSkip([ + \Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPublicMethodParameterRector::class => [ + __DIR__ . '/app/modules/Projects/Interfaces/Queries/FindProjectsHandler.php', + __DIR__ . '/app/modules/Webhooks/Interfaces/Query/FindWebhooksHandler.php', + ], + ]) ->withPhpVersion(PhpVersion::PHP_82) // here we can define, what prepared sets of rules will be applied ->withPreparedSets(