Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot 2022-01-30 16:44:19 +00:00 committed by Dan Brown
parent e17cdab420
commit 4a1d060eb9
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ class OidcProviderSettings
{ {
return array_filter($keys, function (array $key) { return array_filter($keys, function (array $key) {
$alg = $key['alg'] ?? null; $alg = $key['alg'] ?? null;
return $key['kty'] === 'RSA' && $key['use'] === 'sig' && (is_null($alg) || $alg === 'RS256'); return $key['kty'] === 'RSA' && $key['use'] === 'sig' && (is_null($alg) || $alg === 'RS256');
}); });
} }