Skip to content

Commit a9270b5

Browse files
committed
Fix trailing commas
1 parent 6d32cc2 commit a9270b5

133 files changed

Lines changed: 590 additions & 592 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Controller/AuthorizationController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(
3636
private readonly AuthenticationService $authenticationService,
3737
private readonly AuthorizationServer $authorizationServer,
3838
private readonly ModuleConfig $moduleConfig,
39-
private readonly LoggerService $loggerService
39+
private readonly LoggerService $loggerService,
4040
) {
4141
}
4242

@@ -139,7 +139,7 @@ protected function validateAcr(AuthorizationRequest $authorizationRequest): void
139139
$message = sprintf(
140140
'No ACRs configured for current auth source, whilst specification mandates one. ' .
141141
'Falling back to generic ACR (%s).',
142-
$genericAcr
142+
$genericAcr,
143143
);
144144
$this->loggerService->warning($message);
145145
$authorizationRequest->setAcr($genericAcr);

src/Controller/Client/CreateController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(
3939
private readonly TemplateFactory $templateFactory,
4040
private readonly FormFactory $formFactory,
4141
private readonly SessionMessagesService $messages,
42-
private readonly AuthContextService $authContextService
42+
private readonly AuthContextService $authContextService,
4343
) {
4444
}
4545

@@ -95,7 +95,7 @@ public function __invoke(): Template|RedirectResponse
9595
empty($client['auth_source']) ? null : (string)$client['auth_source'],
9696
empty($client['owner']) ? null : (string)$client['owner'],
9797
$postLogoutRedirectUris,
98-
empty($client['backchannel_logout_uri']) ? null : (string)$client['backchannel_logout_uri']
98+
empty($client['backchannel_logout_uri']) ? null : (string)$client['backchannel_logout_uri'],
9999
));
100100

101101
// Also persist allowed origins for this client.

src/Controller/Client/DeleteController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(
4040
ClientRepository $clientRepository,
4141
private readonly TemplateFactory $templateFactory,
4242
private readonly SessionMessagesService $messages,
43-
AuthContextService $authContextService
43+
AuthContextService $authContextService,
4444
) {
4545
$this->clientRepository = $clientRepository;
4646
$this->authContextService = $authContextService;

src/Controller/Client/EditController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(
4444
private readonly TemplateFactory $templateFactory,
4545
private readonly FormFactory $formFactory,
4646
private readonly SessionMessagesService $messages,
47-
AuthContextService $authContextService
47+
AuthContextService $authContextService,
4848
) {
4949
$this->clientRepository = $clientRepository;
5050
$this->authContextService = $authContextService;
@@ -102,7 +102,7 @@ public function __invoke(ServerRequest $request): Template|RedirectResponse
102102
empty($data['auth_source']) ? null : (string)$data['auth_source'],
103103
$client->getOwner(),
104104
$postLogoutRedirectUris,
105-
empty($data['backchannel_logout_uri']) ? null : (string)$data['backchannel_logout_uri']
105+
empty($data['backchannel_logout_uri']) ? null : (string)$data['backchannel_logout_uri'],
106106
), $authedUser);
107107

108108
// Also persist allowed origins for this client.
@@ -111,15 +111,15 @@ public function __invoke(ServerRequest $request): Template|RedirectResponse
111111
$this->messages->addMessage('{oidc:client:updated}');
112112

113113
return new RedirectResponse(
114-
(new HTTP())->addURLParameters('show.php', ['client_id' => $client->getIdentifier()])
114+
(new HTTP())->addURLParameters('show.php', ['client_id' => $client->getIdentifier()]),
115115
);
116116
}
117117

118118
return $this->templateFactory->render('oidc:clients/edit.twig', [
119119
'form' => $form,
120120
'regexUri' => ClientForm::REGEX_URI,
121121
'regexAllowedOriginUrl' => ClientForm::REGEX_ALLOWED_ORIGIN_URL,
122-
'regexHttpUri' => ClientForm::REGEX_HTTP_URI
122+
'regexHttpUri' => ClientForm::REGEX_HTTP_URI,
123123
]);
124124
}
125125
}

src/Controller/Client/IndexController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class IndexController
2828
public function __construct(
2929
private readonly ClientRepository $clientRepository,
3030
private readonly TemplateFactory $templateFactory,
31-
private readonly AuthContextService $authContextService
31+
private readonly AuthContextService $authContextService,
3232
) {
3333
}
3434

src/Controller/Client/ResetSecretController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ResetSecretController
3535
public function __construct(
3636
ClientRepository $clientRepository,
3737
private readonly SessionMessagesService $messages,
38-
AuthContextService $authContextService
38+
AuthContextService $authContextService,
3939
) {
4040
$this->clientRepository = $clientRepository;
4141
$this->authContextService = $authContextService;
@@ -69,7 +69,7 @@ public function __invoke(ServerRequest $request): RedirectResponse
6969
}
7070

7171
return new RedirectResponse(
72-
(new HTTP())->addURLParameters('show.php', ['client_id' => $client->getIdentifier()])
72+
(new HTTP())->addURLParameters('show.php', ['client_id' => $client->getIdentifier()]),
7373
);
7474
}
7575
}

src/Controller/Client/ShowController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(
3636
ClientRepository $clientRepository,
3737
private readonly AllowedOriginRepository $allowedOriginRepository,
3838
private readonly TemplateFactory $templateFactory,
39-
AuthContextService $authContextService
39+
AuthContextService $authContextService,
4040
) {
4141
$this->clientRepository = $clientRepository;
4242
$this->authContextService = $authContextService;
@@ -52,7 +52,7 @@ public function __invoke(ServerRequest $request): Template
5252

5353
return $this->templateFactory->render('oidc:clients/show.twig', [
5454
'client' => $client,
55-
'allowedOrigins' => $allowedOrigins
55+
'allowedOrigins' => $allowedOrigins,
5656
]);
5757
}
5858
}

src/Controller/InstallerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(
3434
private readonly TemplateFactory $templateFactory,
3535
private readonly SessionMessagesService $messages,
3636
private readonly DatabaseMigration $databaseMigration,
37-
private readonly DatabaseLegacyOAuth2Import $databaseLegacyOAuth2Import
37+
private readonly DatabaseLegacyOAuth2Import $databaseLegacyOAuth2Import,
3838
) {
3939
}
4040

src/Controller/LogoutController.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(
2828
protected SessionService $sessionService,
2929
protected LogoutTicketStoreBuilder $sessionLogoutTicketStoreBuilder,
3030
protected LoggerService $loggerService,
31-
protected TemplateFactory $templateFactory
31+
protected TemplateFactory $templateFactory,
3232
) {
3333
}
3434

@@ -87,7 +87,7 @@ public function __invoke(ServerRequest $request): Response
8787
}
8888
} catch (Throwable $exception) {
8989
$this->loggerService->warning(
90-
sprintf('Logout: could not get session with ID %s, error: %s', $sidClaim, $exception->getMessage())
90+
sprintf('Logout: could not get session with ID %s, error: %s', $sidClaim, $exception->getMessage()),
9191
);
9292
}
9393
}
@@ -131,8 +131,8 @@ public static function logoutHandler(): void
131131
$sessionLogoutTicketStore = LogoutTicketStoreBuilder::getStaticInstance();
132132
$sessionLogoutTickets = $sessionLogoutTicketStore->getAll();
133133

134-
if (! empty($sessionLogoutTickets)) {
135-
// TODO low mivanci This could brake since interface does not mandate type. Move to strong typing.
134+
if (!empty($sessionLogoutTickets)) {
135+
// TODO low mivanci This could brake since interface does not mandate type. Move to strong typing.
136136
/** @var array $sessionLogoutTicket */
137137
foreach ($sessionLogoutTickets as $sessionLogoutTicket) {
138138
$sid = (string)$sessionLogoutTicket['sid'];
@@ -144,7 +144,7 @@ public static function logoutHandler(): void
144144
if (($sessionLogoutTicketSession = Session::getSession($sid)) !== null) {
145145
$relyingPartyAssociations = array_merge(
146146
$relyingPartyAssociations,
147-
SessionService::getRelyingPartyAssociationsForSession($sessionLogoutTicketSession)
147+
SessionService::getRelyingPartyAssociationsForSession($sessionLogoutTicketSession),
148148
);
149149

150150
SessionService::clearRelyingPartyAssociationsForSession($sessionLogoutTicketSession);
@@ -154,14 +154,14 @@ public static function logoutHandler(): void
154154
sprintf(
155155
'Session Ticket Logout: could not get session with ID %s, error: %s',
156156
$sid,
157-
$exception->getMessage()
158-
)
157+
$exception->getMessage(),
158+
),
159159
);
160160
}
161161
}
162162

163163
$sessionLogoutTicketStore->deleteMultiple(
164-
array_map(fn(array $slt): string => (string)$slt['sid'], $sessionLogoutTickets)
164+
array_map(fn(array $slt): string => (string)$slt['sid'], $sessionLogoutTickets),
165165
);
166166
}
167167

@@ -183,7 +183,7 @@ protected function resolveResponse(LogoutRequest $logoutRequest, bool $wasLogout
183183
}
184184

185185
return $this->templateFactory->render('oidc:/logout.twig', [
186-
'wasLogoutActionCalled' => $wasLogoutActionCalled
186+
'wasLogoutActionCalled' => $wasLogoutActionCalled,
187187
]);
188188
}
189189
}

src/Controller/UserInfoController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
private readonly AccessTokenRepository $accessTokenRepository,
3838
private readonly UserRepository $userRepository,
3939
private readonly AllowedOriginRepository $allowedOriginRepository,
40-
private readonly ClaimTranslatorExtractor $claimTranslatorExtractor
40+
private readonly ClaimTranslatorExtractor $claimTranslatorExtractor,
4141
) {
4242
}
4343

@@ -70,7 +70,7 @@ public function __invoke(ServerRequest $request): Response
7070
$requestedClaims = $accessToken->getRequestedClaims();
7171
$additionalClaims = $this->claimTranslatorExtractor->extractAdditionalUserInfoClaims(
7272
$requestedClaims,
73-
$user->getClaims()
73+
$user->getClaims(),
7474
);
7575
$claims = array_merge($additionalClaims, $claims);
7676

0 commit comments

Comments
 (0)