@@ -109,7 +109,7 @@ public function __construct(UserProvider $provider,
109
109
*/
110
110
public function check ()
111
111
{
112
- return !is_null ($ this ->user ());
112
+ return ! is_null ($ this ->user ());
113
113
}
114
114
115
115
/**
@@ -119,7 +119,7 @@ public function check()
119
119
*/
120
120
public function guest ()
121
121
{
122
- return !$ this ->check ();
122
+ return ! $ this ->check ();
123
123
}
124
124
125
125
/**
@@ -136,7 +136,7 @@ public function user()
136
136
// If we have already retrieved the user for the current request we can just
137
137
// return it back immediately. We do not want to pull the user data every
138
138
// request into the method because that would tremendously slow an app.
139
- if (!is_null ($ this ->user )) {
139
+ if (! is_null ($ this ->user )) {
140
140
return $ this ->user ;
141
141
}
142
142
@@ -147,7 +147,7 @@ public function user()
147
147
// request, and if one exists, attempt to retrieve the user using that.
148
148
$ user = null ;
149
149
150
- if (!is_null ($ id )) {
150
+ if (! is_null ($ id )) {
151
151
$ user = $ this ->provider ->retrieveById ($ id );
152
152
}
153
153
@@ -156,7 +156,7 @@ public function user()
156
156
// the application. Once we have a user we can return it to the caller.
157
157
$ recaller = $ this ->getRecaller ();
158
158
159
- if (is_null ($ user ) && !is_null ($ recaller )) {
159
+ if (is_null ($ user ) && ! is_null ($ recaller )) {
160
160
$ user = $ this ->getUserByRecaller ($ recaller );
161
161
162
162
if ($ user ) {
@@ -197,12 +197,12 @@ public function id()
197
197
*/
198
198
protected function getUserByRecaller ($ recaller )
199
199
{
200
- if ($ this ->validRecaller ($ recaller ) && !$ this ->tokenRetrievalAttempted ) {
200
+ if ($ this ->validRecaller ($ recaller ) && ! $ this ->tokenRetrievalAttempted ) {
201
201
$ this ->tokenRetrievalAttempted = true ;
202
202
203
203
list ($ id , $ token ) = explode ('| ' , $ recaller , 2 );
204
204
205
- $ this ->viaRemember = !is_null ($ user = $ this ->provider ->retrieveByToken ($ id , $ token ));
205
+ $ this ->viaRemember = ! is_null ($ user = $ this ->provider ->retrieveByToken ($ id , $ token ));
206
206
207
207
return $ user ;
208
208
}
@@ -238,7 +238,7 @@ protected function getRecallerId()
238
238
*/
239
239
protected function validRecaller ($ recaller )
240
240
{
241
- if (!is_string ($ recaller ) || !Str::contains ($ recaller , '| ' )) {
241
+ if (! is_string ($ recaller ) || ! Str::contains ($ recaller , '| ' )) {
242
242
return false ;
243
243
}
244
244
@@ -305,7 +305,7 @@ public function basic($field = 'email')
305
305
*/
306
306
public function onceBasic ($ field = 'email ' )
307
307
{
308
- if (!$ this ->once ($ this ->getBasicCredentials ($ this ->getRequest (), $ field ))) {
308
+ if (! $ this ->once ($ this ->getBasicCredentials ($ this ->getRequest (), $ field ))) {
309
309
return $ this ->getBasicResponse ();
310
310
}
311
311
}
@@ -319,7 +319,7 @@ public function onceBasic($field = 'email')
319
319
*/
320
320
protected function attemptBasic (Request $ request , $ field )
321
321
{
322
- if (!$ request ->getUser ()) {
322
+ if (! $ request ->getUser ()) {
323
323
return false ;
324
324
}
325
325
@@ -387,7 +387,7 @@ public function attempt(array $credentials = [], $remember = false, $login = tru
387
387
*/
388
388
protected function hasValidCredentials ($ user , $ credentials )
389
389
{
390
- return !is_null ($ user ) && $ this ->provider ->validateCredentials ($ user , $ credentials );
390
+ return ! is_null ($ user ) && $ this ->provider ->validateCredentials ($ user , $ credentials );
391
391
}
392
392
393
393
/**
@@ -499,7 +499,7 @@ public function loginUsingId($id, $remember = false)
499
499
*/
500
500
public function onceUsingId ($ id )
501
501
{
502
- if (!is_null ($ user = $ this ->provider ->retrieveById ($ id ))) {
502
+ if (! is_null ($ user = $ this ->provider ->retrieveById ($ id ))) {
503
503
$ this ->setUser ($ user );
504
504
505
505
return true ;
@@ -546,7 +546,7 @@ public function logout()
546
546
// listening for anytime a user signs out of this application manually.
547
547
$ this ->clearUserDataFromStorage ();
548
548
549
- if (!is_null ($ this ->user )) {
549
+ if (! is_null ($ this ->user )) {
550
550
$ this ->refreshRememberToken ($ user );
551
551
}
552
552
@@ -611,7 +611,7 @@ protected function createRememberTokenIfDoesntExist(UserContract $user)
611
611
*/
612
612
public function getCookieJar ()
613
613
{
614
- if (!isset ($ this ->cookie )) {
614
+ if (! isset ($ this ->cookie )) {
615
615
throw new RuntimeException ('Cookie jar has not been set. ' );
616
616
}
617
617
0 commit comments