Skip to content

Commit 568c7de

Browse files
committed
Fix CS
1 parent 44272ff commit 568c7de

16 files changed

+18
-18
lines changed

src/Command/ClearExpiredTokensCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class ClearExpiredTokensCommand extends Command
3535
public function __construct(
3636
AccessTokenManagerInterface $accessTokenManager,
3737
RefreshTokenManagerInterface $refreshTokenManager,
38-
AuthorizationCodeManagerInterface $authorizationCodeManager
38+
AuthorizationCodeManagerInterface $authorizationCodeManager,
3939
) {
4040
parent::__construct();
4141

src/Controller/AuthorizationController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function __construct(
6868
ClientManagerInterface $clientManager,
6969
HttpMessageFactoryInterface $httpMessageFactory,
7070
HttpFoundationFactoryInterface $httpFoundationFactory,
71-
ResponseFactoryInterface $responseFactory
71+
ResponseFactoryInterface $responseFactory,
7272
) {
7373
$this->server = $server;
7474
$this->eventDispatcher = $eventDispatcher;

src/Controller/TokenController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct(
4747
HttpMessageFactoryInterface $httpMessageFactory,
4848
HttpFoundationFactoryInterface $httpFoundationFactory,
4949
ResponseFactoryInterface $responseFactory,
50-
EventDispatcherInterface $eventDispatcher
50+
EventDispatcherInterface $eventDispatcher,
5151
) {
5252
$this->server = $server;
5353
$this->httpMessageFactory = $httpMessageFactory;

src/Manager/Doctrine/ClientManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ final class ClientManager implements ClientManagerInterface
3939
public function __construct(
4040
EntityManagerInterface $entityManager,
4141
EventDispatcherInterface $dispatcher,
42-
string $clientFqcn
42+
string $clientFqcn,
4343
) {
4444
$this->entityManager = $entityManager;
4545
$this->dispatcher = $dispatcher;

src/Model/AccessToken.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(
4848
\DateTimeInterface $expiry,
4949
ClientInterface $client,
5050
?string $userIdentifier,
51-
array $scopes
51+
array $scopes,
5252
) {
5353
$this->identifier = $identifier;
5454
$this->expiry = $expiry;

src/Model/AuthorizationCode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(
4848
\DateTimeInterface $expiry,
4949
ClientInterface $client,
5050
?string $userIdentifier,
51-
array $scopes
51+
array $scopes,
5252
) {
5353
$this->identifier = $identifier;
5454
$this->expiry = $expiry;

src/Repository/AccessTokenRepository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class AccessTokenRepository implements AccessTokenRepositoryInterface
3535
public function __construct(
3636
AccessTokenManagerInterface $accessTokenManager,
3737
ClientManagerInterface $clientManager,
38-
ScopeConverterInterface $scopeConverter
38+
ScopeConverterInterface $scopeConverter,
3939
) {
4040
$this->accessTokenManager = $accessTokenManager;
4141
$this->clientManager = $clientManager;

src/Repository/AuthCodeRepository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ final class AuthCodeRepository implements AuthCodeRepositoryInterface
3434
public function __construct(
3535
AuthorizationCodeManagerInterface $authorizationCodeManager,
3636
ClientManagerInterface $clientManager,
37-
ScopeConverterInterface $scopeConverter
37+
ScopeConverterInterface $scopeConverter,
3838
) {
3939
$this->authorizationCodeManager = $authorizationCodeManager;
4040
$this->clientManager = $clientManager;

src/Repository/RefreshTokenRepository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class RefreshTokenRepository implements RefreshTokenRepositoryInterface
2626

2727
public function __construct(
2828
RefreshTokenManagerInterface $refreshTokenManager,
29-
AccessTokenManagerInterface $accessTokenManager
29+
AccessTokenManagerInterface $accessTokenManager,
3030
) {
3131
$this->refreshTokenManager = $refreshTokenManager;
3232
$this->accessTokenManager = $accessTokenManager;

src/Repository/ScopeRepository.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(
4444
ScopeManagerInterface $scopeManager,
4545
ClientManagerInterface $clientManager,
4646
ScopeConverterInterface $scopeConverter,
47-
EventDispatcherInterface $eventDispatcher
47+
EventDispatcherInterface $eventDispatcher,
4848
) {
4949
$this->scopeManager = $scopeManager;
5050
$this->clientManager = $clientManager;
@@ -73,7 +73,7 @@ public function finalizeScopes(
7373
string $grantType,
7474
ClientEntityInterface $clientEntity,
7575
string|int|null $userIdentifier = null,
76-
?string $authCodeId = null
76+
?string $authCodeId = null,
7777
): array {
7878
/** @var AbstractClient $client */
7979
$client = $this->clientManager->find($clientEntity->getIdentifier());

src/Repository/UserRepository.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class UserRepository implements UserRepositoryInterface
3535
public function __construct(
3636
ClientManagerInterface $clientManager,
3737
EventDispatcherInterface $eventDispatcher,
38-
UserConverterInterface $userConverter
38+
UserConverterInterface $userConverter,
3939
) {
4040
$this->clientManager = $clientManager;
4141
$this->eventDispatcher = $eventDispatcher;
@@ -46,7 +46,7 @@ public function getUserEntityByUserCredentials(
4646
string $username,
4747
string $password,
4848
string $grantType,
49-
ClientEntityInterface $clientEntity
49+
ClientEntityInterface $clientEntity,
5050
): ?UserEntityInterface {
5151
/** @var AbstractClient $client */
5252
$client = $this->clientManager->find($clientEntity->getIdentifier());

src/Security/Authentication/Token/OAuth2Token.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(
2020
string $accessTokenId,
2121
string $oauthClientId,
2222
array $scopes,
23-
string $rolePrefix
23+
string $rolePrefix,
2424
) {
2525
$this->setAttribute('access_token_id', $accessTokenId);
2626
$this->setAttribute('oauth_client_id', $oauthClientId);

src/Security/Authenticator/OAuth2Authenticator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(
4545
HttpMessageFactoryInterface $httpMessageFactory,
4646
ResourceServer $resourceServer,
4747
UserProviderInterface $userProvider,
48-
string $rolePrefix
48+
string $rolePrefix,
4949
) {
5050
$this->httpMessageFactory = $httpMessageFactory;
5151
$this->resourceServer = $resourceServer;

tests/Fixtures/FixtureFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function initializeFixtures(
7676
ClientManagerInterface $clientManager,
7777
AccessTokenManagerInterface $accessTokenManager,
7878
RefreshTokenManagerInterface $refreshTokenManager,
79-
AuthorizationCodeManagerInterface $authCodeManager
79+
AuthorizationCodeManagerInterface $authCodeManager,
8080
): void {
8181
foreach (self::createScopes() as $scope) {
8282
$scopeManager->save($scope);

tests/Integration/AbstractIntegrationTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private function createAuthorizationServer(
268268
AccessTokenRepositoryInterface $accessTokenRepository,
269269
RefreshTokenRepositoryInterface $refreshTokenRepository,
270270
UserRepositoryInterface $userRepository,
271-
AuthCodeRepositoryInterface $authCodeRepository
271+
AuthCodeRepositoryInterface $authCodeRepository,
272272
): AuthorizationServer {
273273
$authorizationServer = new AuthorizationServer(
274274
$clientRepository,

tests/Unit/ExtensionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function grantsProvider(): iterable
7070
*/
7171
public function testAuthCodeGrantDisableRequireCodeChallengeForPublicClientsConfig(
7272
?bool $requireCodeChallengeForPublicClients,
73-
bool $shouldTheRequirementBeDisabled
73+
bool $shouldTheRequirementBeDisabled,
7474
): void {
7575
$container = new ContainerBuilder();
7676

0 commit comments

Comments
 (0)