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()); } /**