From b7a6c613fe96d7ceaa5916389283507e2c8c3646 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Fri, 8 Nov 2024 11:02:30 -0600 Subject: [PATCH] minor formatting --- src/Illuminate/Auth/Passwords/CacheTokenRepository.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Illuminate/Auth/Passwords/CacheTokenRepository.php b/src/Illuminate/Auth/Passwords/CacheTokenRepository.php index 3cccad4557bd..8a2ec3de6656 100644 --- a/src/Illuminate/Auth/Passwords/CacheTokenRepository.php +++ b/src/Illuminate/Auth/Passwords/CacheTokenRepository.php @@ -41,7 +41,7 @@ public function create(CanResetPasswordContract $user) $token = hash_hmac('sha256', Str::random(40), $this->hashKey); $this->cache->put( - $this->prefix . $user->getEmailForPasswordReset(), + $this->prefix.$user->getEmailForPasswordReset(), [$token, Carbon::now()->format($this->format)], $this->expires, ); @@ -58,7 +58,7 @@ public function create(CanResetPasswordContract $user) */ public function exists(CanResetPasswordContract $user, #[\SensitiveParameter] $token) { - [$record, $createdAt] = $this->cache->get($this->prefix . $user->getEmailForPasswordReset()); + [$record, $createdAt] = $this->cache->get($this->prefix.$user->getEmailForPasswordReset()); return $record && ! $this->tokenExpired($createdAt) @@ -84,7 +84,7 @@ protected function tokenExpired($createdAt) */ public function recentlyCreatedToken(CanResetPasswordContract $user) { - [$record, $createdAt] = $this->cache->get($this->prefix . $user->getEmailForPasswordReset()); + [$record, $createdAt] = $this->cache->get($this->prefix.$user->getEmailForPasswordReset()); return $record && $this->tokenRecentlyCreated($createdAt); } @@ -114,7 +114,7 @@ protected function tokenRecentlyCreated($createdAt) */ public function delete(CanResetPasswordContract $user) { - $this->cache->forget($this->prefix . $user->getEmailForPasswordReset()); + $this->cache->forget($this->prefix.$user->getEmailForPasswordReset()); } /**