Apply suggestions from code review

Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
Simon GieselandChristy Jacob authored and GitHub committed 2022-06-09 10:51:27 +02:00
1 parent 72e3106e0d
commit 0c55a60897
1 file changed
+2 -3
+2 -3
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'] ?? '';
}
/**