Skip to content

Commit

Permalink
minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
browner12 committed Nov 8, 2024
1 parent 9259008 commit b7a6c61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Illuminate/Auth/Passwords/CacheTokenRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand All @@ -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)
Expand All @@ -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);
}
Expand Down Expand Up @@ -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());
}

/**
Expand Down

0 comments on commit b7a6c61

Please sign in to comment.