From 6729a8dce358236a8292799ed099afb1751cbe0d Mon Sep 17 00:00:00 2001 From: evansims Date: Mon, 7 Nov 2022 23:45:14 +0000 Subject: [PATCH] Build: (0084336) fix: Remove redundant Cache `getItem()` call in `Auth0\SDK\Token\Verifier::getKeySet()` (#669) * Remove unnecessary second getItem call $item (although with an empty value) has already been created on line 198: https://github.com/auth0/auth0-PHP/blob/main/src/Token/Verifier.php#L198. We only have to save the value and expiry here. This change will only (try) to get the value of the cache once instead of twice. * fix: Variable scope Co-authored-by: Evan Sims --- classes/Auth0-SDK-Token-Verifier.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Auth0-SDK-Token-Verifier.html b/classes/Auth0-SDK-Token-Verifier.html index 4e4f2d1e..5c62531e 100644 --- a/classes/Auth0-SDK-Token-Verifier.html +++ b/classes/Auth0-SDK-Token-Verifier.html @@ -797,7 +797,7 @@

@@ -855,7 +855,7 @@