Skip to content

Commit

Permalink
format method
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 31, 2017
1 parent 84d4839 commit 565456d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Illuminate/Auth/SessionGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ protected function userFromRecaller($recaller)
*/
protected function recaller()
{
if (! is_null($this->request) && $recaller = $this->request->cookies->get($this->getRecallerName())) {
if (is_null($this->request)) {
return;
}

if ($recaller = $this->request->cookies->get($this->getRecallerName())) {
return new Recaller($recaller);
}
}
Expand Down

0 comments on commit 565456d

Please sign in to comment.