From 0c55a608971e8dd82a1d4a19b2894c343cedab65 Mon Sep 17 00:00:00 2001 From: Simon Giesel Date: Thu, 9 Jun 2022 10:51:27 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Christy Jacob --- src/Appwrite/Auth/OAuth2/Authentik.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Auth/OAuth2/Authentik.php b/src/Appwrite/Auth/OAuth2/Authentik.php index 6ef701fc32..f07800bfd6 100644 --- a/src/Appwrite/Auth/OAuth2/Authentik.php +++ b/src/Appwrite/Auth/OAuth2/Authentik.php @@ -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'] ?? ''; } /**