@@ -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}
0 commit comments