diff --git a/src/Command/CleanCommand.php b/src/Command/CleanCommand.php index cffdfc5..298d8f5 100644 --- a/src/Command/CleanCommand.php +++ b/src/Command/CleanCommand.php @@ -23,7 +23,7 @@ class CleanCommand extends Command public function __construct( private readonly AccessTokenStorageInterface $accessTokenStorage, private readonly RefreshTokenStorageInterface $refreshTokenStorage, - private readonly AuthCodeStorageInterface $authCodeStorage + private readonly AuthCodeStorageInterface $authCodeStorage, ) { parent::__construct(); } diff --git a/src/Doctrine/Storage/AccessTokenStorage.php b/src/Doctrine/Storage/AccessTokenStorage.php index 25f948e..da9a2ae 100644 --- a/src/Doctrine/Storage/AccessTokenStorage.php +++ b/src/Doctrine/Storage/AccessTokenStorage.php @@ -20,7 +20,7 @@ class AccessTokenStorage implements AccessTokenStorageInterface */ public function __construct( private readonly EntityManagerInterface $em, - string $className + string $className, ) { $repository = $this->em->getRepository($className); diff --git a/src/Doctrine/Storage/AuthCodeStorage.php b/src/Doctrine/Storage/AuthCodeStorage.php index 091c76d..ca32245 100644 --- a/src/Doctrine/Storage/AuthCodeStorage.php +++ b/src/Doctrine/Storage/AuthCodeStorage.php @@ -20,7 +20,7 @@ class AuthCodeStorage implements AuthCodeStorageInterface */ public function __construct( private readonly EntityManagerInterface $em, - string $className + string $className, ) { /** @var class-string $className */ $repository = $this->em->getRepository($className); diff --git a/src/Doctrine/Storage/ClientStorage.php b/src/Doctrine/Storage/ClientStorage.php index 71f6c40..6bf08b4 100644 --- a/src/Doctrine/Storage/ClientStorage.php +++ b/src/Doctrine/Storage/ClientStorage.php @@ -18,7 +18,7 @@ class ClientStorage implements ClientStorageInterface */ public function __construct( private readonly EntityManagerInterface $em, - string $className + string $className, ) { $repository = $this->em->getRepository($className); diff --git a/src/Doctrine/Storage/RefreshTokenStorage.php b/src/Doctrine/Storage/RefreshTokenStorage.php index 52a5851..93c770b 100644 --- a/src/Doctrine/Storage/RefreshTokenStorage.php +++ b/src/Doctrine/Storage/RefreshTokenStorage.php @@ -20,7 +20,7 @@ class RefreshTokenStorage implements RefreshTokenStorageInterface */ public function __construct( private readonly EntityManagerInterface $em, - string $className + string $className, ) { $repository = $this->em->getRepository($className); diff --git a/src/Security/Authenticator/OAuthAuthenticator.php b/src/Security/Authenticator/OAuthAuthenticator.php index 5877f3f..7bb3c5f 100644 --- a/src/Security/Authenticator/OAuthAuthenticator.php +++ b/src/Security/Authenticator/OAuthAuthenticator.php @@ -27,7 +27,7 @@ class OAuthAuthenticator extends AbstractAuthenticator public function __construct( private readonly UserCheckerInterface $userChecker, private readonly Handler $handler, - private readonly Config $config + private readonly Config $config, ) { } diff --git a/src/Security/Authenticator/Passport/Badge/AccessTokenBadge.php b/src/Security/Authenticator/Passport/Badge/AccessTokenBadge.php index f4d0c40..9adc88c 100644 --- a/src/Security/Authenticator/Passport/Badge/AccessTokenBadge.php +++ b/src/Security/Authenticator/Passport/Badge/AccessTokenBadge.php @@ -14,7 +14,7 @@ class AccessTokenBadge implements BadgeInterface */ public function __construct( private readonly AccessTokenInterface $accessToken, - private readonly array $roles + private readonly array $roles, ) { } diff --git a/src/Server/Handler.php b/src/Server/Handler.php index e2318fe..76cb4aa 100644 --- a/src/Server/Handler.php +++ b/src/Server/Handler.php @@ -356,7 +356,7 @@ private function createAccessToken( ?string $scope = null, ?int $accessTokenLifetime = null, bool $issueRefreshToken = true, - ?int $refreshTokenLifetime = null + ?int $refreshTokenLifetime = null, ): array { if (null === $accessTokenLifetime) { $accessTokenLifetime = (int) $this->config->getVariable(Config::CONFIG_ACCESS_LIFETIME); diff --git a/tests/Server/HandlerTest.php b/tests/Server/HandlerTest.php index 8b980a4..6cf9540 100644 --- a/tests/Server/HandlerTest.php +++ b/tests/Server/HandlerTest.php @@ -166,7 +166,7 @@ public static function provideVerifyAccessTokenException(): iterable public function testVerifyAccessTokenException( ?AccessTokenInterface $token, string $tokenParam, - ?string $scope = null + ?string $scope = null, ): void { $this->accessTokenStorage->method('getAccessToken')->willReturn($token); @@ -569,7 +569,7 @@ public function testGrantAccessTokenCustom(Request $request): void ->willReturn($client) ; - $custom = new class() implements GrantExtensionInterface { + $custom = new class implements GrantExtensionInterface { public function checkGrantExtension(ClientInterface $client, Config $config, string $grantType, array $input): Grant { return new Grant(null, null);