1
0
Fork 0
mirror of synced 2024-06-29 19:50:26 +12:00

Apply suggestions from code review

Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
Simon Giesel 2022-06-09 10:51:27 +02:00 committed by GitHub
parent 72e3106e0d
commit 0c55a60897
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,7 +140,6 @@ class Authentik extends OAuth2
/**
* Check if the User email is verified
*
*
* @param string $accessToken
*
* @return bool
@ -197,7 +196,7 @@ class Authentik extends OAuth2
{
$secret = $this->getAppSecret();
return (isset($secret['clientSecret'])) ? $secret['clientSecret'] : '';
return $secret['clientSecret'] ?? '';
}
/**
@ -208,7 +207,7 @@ class Authentik extends OAuth2
protected function getAuthentikDomain(): string
{
$secret = $this->getAppSecret();
return (isset($secret['authentikDomain'])) ? $secret['authentikDomain'] : '';
return $secret['authentikDomain'] ?? '';
}
/**