Skip to content

Commit

Permalink
Fixes from last version of php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
muxx committed Oct 21, 2024
1 parent a5be73f commit 88b4bf3
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Command/CleanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Storage/AccessTokenStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AccessTokenStorage implements AccessTokenStorageInterface
*/
public function __construct(
private readonly EntityManagerInterface $em,
string $className
string $className,
) {
$repository = $this->em->getRepository($className);

Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Storage/AuthCodeStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Storage/ClientStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ClientStorage implements ClientStorageInterface
*/
public function __construct(
private readonly EntityManagerInterface $em,
string $className
string $className,
) {
$repository = $this->em->getRepository($className);

Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Storage/RefreshTokenStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class RefreshTokenStorage implements RefreshTokenStorageInterface
*/
public function __construct(
private readonly EntityManagerInterface $em,
string $className
string $className,
) {
$repository = $this->em->getRepository($className);

Expand Down
2 changes: 1 addition & 1 deletion src/Security/Authenticator/OAuthAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AccessTokenBadge implements BadgeInterface
*/
public function __construct(
private readonly AccessTokenInterface $accessToken,
private readonly array $roles
private readonly array $roles,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Server/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions tests/Server/HandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 88b4bf3

Please sign in to comment.