99use SimpleSAML \{Configuration , Logger , Session , Utils };
1010use SimpleSAML \Assert \Assert ;
1111use SimpleSAML \SAML2 \XML \saml \NameID ;
12- use SimpleSAML \Store \{StoreFactory , StoreInterface };
12+ use SimpleSAML \Store \{SQLStore , StoreFactory , StoreInterface };
1313
1414use function gmdate ;
1515use function rand ;
@@ -30,7 +30,7 @@ class LogoutStore
3030 *
3131 * @param \SimpleSAML\Store\SQLStore $store The datastore.
3232 */
33- private static function createLogoutTable (Store \ SQLStore $ store ): void
33+ private static function createLogoutTable (SQLStore $ store ): void
3434 {
3535 $ tableVer = $ store ->getTableVersion ('saml_LogoutStore ' );
3636 if ($ tableVer === 4 ) {
@@ -70,7 +70,7 @@ private static function createLogoutTable(Store\SQLStore $store): void
7070 *
7171 * @param \SimpleSAML\Store\SQLStore $store The datastore.
7272 */
73- private static function cleanLogoutStore (Store \ SQLStore $ store ): void
73+ private static function cleanLogoutStore (SQLStore $ store ): void
7474 {
7575 Logger::debug ('saml.LogoutStore: Cleaning logout store. ' );
7676
@@ -93,7 +93,7 @@ private static function cleanLogoutStore(Store\SQLStore $store): void
9393 * @param string $sessionId
9494 */
9595 private static function addSessionSQL (
96- Store \ SQLStore $ store ,
96+ SQLStore $ store ,
9797 string $ authId ,
9898 string $ nameId ,
9999 string $ sessionIndex ,
@@ -129,7 +129,7 @@ private static function addSessionSQL(
129129 * @param string $nameId The hash of the users NameID.
130130 * @return array Associative array of SessionIndex => SessionId.
131131 */
132- private static function getSessionsSQL (Store \ SQLStore $ store , string $ authId , string $ nameId ): array
132+ private static function getSessionsSQL (SQLStore $ store , string $ authId , string $ nameId ): array
133133 {
134134 self ::createLogoutTable ($ store );
135135
@@ -229,7 +229,7 @@ public static function addSession(string $authId, NameID $nameId, ?string $sessi
229229 /** @var string $sessionId */
230230 $ sessionId = $ session ->getSessionId ();
231231
232- if ($ store instanceof Store \ SQLStore) {
232+ if ($ store instanceof SQLStore) {
233233 self ::addSessionSQL ($ store , $ authId , $ strNameId , $ sessionIndex , $ expire , $ sessionId );
234234 } else {
235235 $ store ->set ('saml.LogoutStore ' , $ strNameId . ': ' . $ sessionIndex , $ sessionId , $ expire );
@@ -271,7 +271,7 @@ public static function logoutSessions(string $authId, NameID $nameId, array $ses
271271 // Remove reference
272272 unset($ sessionIndex );
273273
274- if ($ store instanceof Store \ SQLStore) {
274+ if ($ store instanceof SQLStore) {
275275 $ sessions = self ::getSessionsSQL ($ store , $ authId , $ strNameId );
276276 } else {
277277 if (empty ($ sessionIndexes )) {
0 commit comments