@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | // If we've already retrieved the user for the current request we can just |
78 | 78 | // return it back immediately. We do not want to fetch the user data on |
79 | 79 | // every call to this method because that would be tremendously slow. |
80 | - if (! is_null($this->user)) { |
|
80 | + if (!is_null($this->user)) { |
|
81 | 81 | return $this->user; |
82 | 82 | } |
83 | 83 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | // request, and if one exists, attempt to retrieve the user using that. |
100 | 100 | $user = null; |
101 | 101 | |
102 | - if (! is_null($id)) { |
|
102 | + if (!is_null($id)) { |
|
103 | 103 | $user = $this->provider->retrieveById($id); |
104 | 104 | } |
105 | 105 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | // the application. Once we have a user we can return it to the caller. |
109 | 109 | $recaller = $this->recaller(); |
110 | 110 | |
111 | - if (is_null($user) && ! is_null($recaller)) { |
|
111 | + if (is_null($user) && !is_null($recaller)) { |
|
112 | 112 | $user = $this->userFromRecaller($recaller); |
113 | 113 | |
114 | 114 | if ($user) { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | */ |
164 | 164 | public function attempt() |
165 | 165 | { |
166 | - if(!$this->check()) { |
|
166 | + if (!$this->check()) { |
|
167 | 167 | return false; |
168 | 168 | } |
169 | 169 | |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | protected function queueRecallerCookie(AuthenticatableContract $user) |
238 | 238 | { |
239 | 239 | $this->getCookieJar()->queue($this->createRecaller( |
240 | - $user->getAuthIdentifier().'|'.$user->getRememberToken() |
|
240 | + $user->getAuthIdentifier() . '|' . $user->getRememberToken() |
|
241 | 241 | )); |
242 | 242 | } |
243 | 243 | |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | */ |
262 | 262 | public function getCookieJar() |
263 | 263 | { |
264 | - if (! isset($this->cookie)) { |
|
264 | + if (!isset($this->cookie)) { |
|
265 | 265 | throw new \RuntimeException('Cookie jar has not been set.'); |
266 | 266 | } |
267 | 267 | |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | */ |
314 | 314 | protected function userFromRecaller($recaller) |
315 | 315 | { |
316 | - if (! $recaller->valid() || $this->recallAttempted) { |
|
316 | + if (!$recaller->valid() || $this->recallAttempted) { |
|
317 | 317 | return; |
318 | 318 | } |
319 | 319 |
@@ -89,8 +89,7 @@ |
||
89 | 89 | $user = $this->provider->retrieveByCredentials( |
90 | 90 | [$this->storageKey => $this->getTokenKey($token)] |
91 | 91 | ); |
92 | - } |
|
93 | - else { |
|
92 | + } else { |
|
94 | 93 | |
95 | 94 | $id = $this->session->get($this->getName()); |
96 | 95 |