Skip to content

Commit 88b4bf3

Browse files
committed
Fixes from last version of php-cs-fixer
1 parent a5be73f commit 88b4bf3

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

src/Command/CleanCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CleanCommand extends Command
2323
public function __construct(
2424
private readonly AccessTokenStorageInterface $accessTokenStorage,
2525
private readonly RefreshTokenStorageInterface $refreshTokenStorage,
26-
private readonly AuthCodeStorageInterface $authCodeStorage
26+
private readonly AuthCodeStorageInterface $authCodeStorage,
2727
) {
2828
parent::__construct();
2929
}

src/Doctrine/Storage/AccessTokenStorage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class AccessTokenStorage implements AccessTokenStorageInterface
2020
*/
2121
public function __construct(
2222
private readonly EntityManagerInterface $em,
23-
string $className
23+
string $className,
2424
) {
2525
$repository = $this->em->getRepository($className);
2626

src/Doctrine/Storage/AuthCodeStorage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class AuthCodeStorage implements AuthCodeStorageInterface
2020
*/
2121
public function __construct(
2222
private readonly EntityManagerInterface $em,
23-
string $className
23+
string $className,
2424
) {
2525
/** @var class-string $className */
2626
$repository = $this->em->getRepository($className);

src/Doctrine/Storage/ClientStorage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ClientStorage implements ClientStorageInterface
1818
*/
1919
public function __construct(
2020
private readonly EntityManagerInterface $em,
21-
string $className
21+
string $className,
2222
) {
2323
$repository = $this->em->getRepository($className);
2424

src/Doctrine/Storage/RefreshTokenStorage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class RefreshTokenStorage implements RefreshTokenStorageInterface
2020
*/
2121
public function __construct(
2222
private readonly EntityManagerInterface $em,
23-
string $className
23+
string $className,
2424
) {
2525
$repository = $this->em->getRepository($className);
2626

src/Security/Authenticator/OAuthAuthenticator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class OAuthAuthenticator extends AbstractAuthenticator
2727
public function __construct(
2828
private readonly UserCheckerInterface $userChecker,
2929
private readonly Handler $handler,
30-
private readonly Config $config
30+
private readonly Config $config,
3131
) {
3232
}
3333

src/Security/Authenticator/Passport/Badge/AccessTokenBadge.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AccessTokenBadge implements BadgeInterface
1414
*/
1515
public function __construct(
1616
private readonly AccessTokenInterface $accessToken,
17-
private readonly array $roles
17+
private readonly array $roles,
1818
) {
1919
}
2020

src/Server/Handler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ private function createAccessToken(
356356
?string $scope = null,
357357
?int $accessTokenLifetime = null,
358358
bool $issueRefreshToken = true,
359-
?int $refreshTokenLifetime = null
359+
?int $refreshTokenLifetime = null,
360360
): array {
361361
if (null === $accessTokenLifetime) {
362362
$accessTokenLifetime = (int) $this->config->getVariable(Config::CONFIG_ACCESS_LIFETIME);

tests/Server/HandlerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public static function provideVerifyAccessTokenException(): iterable
166166
public function testVerifyAccessTokenException(
167167
?AccessTokenInterface $token,
168168
string $tokenParam,
169-
?string $scope = null
169+
?string $scope = null,
170170
): void {
171171
$this->accessTokenStorage->method('getAccessToken')->willReturn($token);
172172

@@ -569,7 +569,7 @@ public function testGrantAccessTokenCustom(Request $request): void
569569
->willReturn($client)
570570
;
571571

572-
$custom = new class() implements GrantExtensionInterface {
572+
$custom = new class implements GrantExtensionInterface {
573573
public function checkGrantExtension(ClientInterface $client, Config $config, string $grantType, array $input): Grant
574574
{
575575
return new Grant(null, null);

0 commit comments

Comments
 (0)