private function JWKFetcher::subArrayHasEmptyFirstItem in Auth0 Single Sign On 8.2
Check if an array within an array has a non-empty first item.
@codeCoverageIgnore
Parameters
array|null $array Main array to check.:
string $key Key pointing to a sub-array.:
Return value
boolean
Deprecated
5.6.0, not used.
2 calls to JWKFetcher::subArrayHasEmptyFirstItem()
- JWKFetcher::findJwk in vendor/
auth0/ auth0-php/ src/ Helpers/ JWKFetcher.php - Get a JWK from a JWKS using a key ID, if provided.
- JWKFetcher::requestJwkX5c in vendor/
auth0/ auth0-php/ src/ Helpers/ JWKFetcher.php - Fetch x509 cert for RS256 token decoding.
File
- vendor/
auth0/ auth0-php/ src/ Helpers/ JWKFetcher.php, line 194
Class
- JWKFetcher
- Class JWKFetcher.
Namespace
Auth0\SDK\HelpersCode
private function subArrayHasEmptyFirstItem($array, $key) {
return empty($array) || !is_array($array[$key]) || empty($array[$key][0]);
}