ok
Direktori : /home2/selectio/public_html/myclassicfit.com/vendor/lcobucci/jwt/src/Encoding/ |
Current File : /home2/selectio/public_html/myclassicfit.com/vendor/lcobucci/jwt/src/Encoding/UnifyAudience.php |
<?php declare(strict_types=1); namespace Lcobucci\JWT\Encoding; use Lcobucci\JWT\ClaimsFormatter; use Lcobucci\JWT\Token\RegisteredClaims; use function array_key_exists; use function count; use function current; final class UnifyAudience implements ClaimsFormatter { /** @inheritdoc */ public function formatClaims(array $claims): array { if ( ! array_key_exists(RegisteredClaims::AUDIENCE, $claims) || count($claims[RegisteredClaims::AUDIENCE]) !== 1 ) { return $claims; } $claims[RegisteredClaims::AUDIENCE] = current($claims[RegisteredClaims::AUDIENCE]); return $claims; } }