Skip to content

Commit

Permalink
Fixing @return types
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Aug 23, 2017
1 parent 7b87059 commit 33e556f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Modules/User/Guards/Sentinel.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,21 @@ public function validate(array $credentials = [])
/**
* Set the current user.
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @return void
* @return bool
*/
public function setUser(Authenticatable $user)
{
SentinelFacade::login($user);
return SentinelFacade::login($user);
}

/**
* Alias to set the current user.
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @return void
* @return bool
*/
public function login(Authenticatable $user)
{
$this->setUser($user);
return $this->setUser($user);
}

/**
Expand All @@ -104,8 +104,8 @@ public function logout()
*/
public function loginUsingId($userId)
{
$impersonatedUser = app(\Modules\User\Repositories\UserRepository::class)->find($userId);
$user = app(\Modules\User\Repositories\UserRepository::class)->find($userId);

return $this->login($impersonatedUser);
return $this->login($user);
}
}

0 comments on commit 33e556f

Please sign in to comment.