@@ -326,9 +326,9 @@ public function getClaimSetEntry(AccessTokenEntityInterface $accessToken): Claim
326326 public string $ scope = 'openid ' ;
327327
328328 /**
329- * @var array<string, string> $claims
329+ * @var array<string, string>
330330 */
331- public array $ claims = [" acr " => " pop " ];
331+ public array $ claims = [' acr ' => ' pop ' ];
332332
333333 public function getScope (): string
334334 {
@@ -348,15 +348,15 @@ public function getClaims(): array
348348 }
349349 };
350350
351- $ IdTokenRepository = (new class () implements IdTokenRepositoryInterface{
351+ $ IdTokenRepository = (new class () implements IdTokenRepositoryInterface {
352352 public function getBuilder (AccessTokenEntityInterface $ accessToken ): Builder
353353 {
354354 $ builder = (new TokenBuilder (
355355 new JoseEncoder (),
356356 ChainedFormatter::withUnixTimestampDates ()
357357 ))
358358 ->permittedFor ($ accessToken ->getClient ()->getIdentifier ())
359- ->issuedBy (" https://example.com " )
359+ ->issuedBy (' https://example.com ' )
360360 ->issuedAt (new DateTimeImmutable ())
361361 ->expiresAt ($ accessToken ->getExpiryDateTime ())
362362 ->relatedTo ($ accessToken ->getUserIdentifier ())
@@ -420,7 +420,7 @@ public function getBuilder(AccessTokenEntityInterface $accessToken): Builder
420420 $ json = json_decode ($ response ->getBody ()->getContents ());
421421 $ this ->assertEquals ('Bearer ' , $ json ->token_type );
422422
423- foreach (['expires_in ' , " access_token " , " refresh_token " , " id_token " ] as $ claim ) {
423+ foreach (['expires_in ' , ' access_token ' , ' refresh_token ' , ' id_token ' ] as $ claim ) {
424424 self ::assertTrue (property_exists ($ json , $ claim ));
425425 }
426426
@@ -435,7 +435,7 @@ public function getBuilder(AccessTokenEntityInterface $accessToken): Builder
435435
436436 $ this ->assertTrue ($ validator ->validate (
437437 $ token ,
438- new IssuedBy (" https://example.com " )
438+ new IssuedBy (' https://example.com ' )
439439 ));
440440
441441 $ this ->assertTrue ($ validator ->validate (
@@ -453,7 +453,7 @@ public function getBuilder(AccessTokenEntityInterface $accessToken): Builder
453453 new LooseValidAt (new SystemClock ($ accessToken ->getExpiryDateTime ()->getTimezone ()))
454454 ));
455455
456- $ this ->assertTrue ($ validator ->validate ($ token , new HasClaimWithValue (" acr " , " pop " )));
456+ $ this ->assertTrue ($ validator ->validate ($ token , new HasClaimWithValue (' acr ' , ' pop ' )));
457457 $ this ->assertTrue ($ validator ->validate ($ token , new HasClaimWithValue ('nonce ' , 's6G31Kolwu9p ' )));
458458 }
459459}
0 commit comments