Passed
Push — master ( 35ff5f...63edb8 )
by Ion
03:15
created
app/Services/UserService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function loginUserWithRememberToken($token)
157 157
     {
158
-        return User::whereHas('userTokens', function ($query) use ($token) {
158
+        return User::whereHas('userTokens', function($query) use ($token) {
159 159
             $query->where('token', $token)
160 160
                 ->where('expire_on', '>=', Carbon::now()->format('Y-m-d H:i:s'));
161 161
         })->first();
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      */
258 258
     public function loginUserWithSocial(SocialiteUser $socialUser, Language $language, string $socialId)
259 259
     {
260
-        $user = User::where(function ($query) use ($socialUser, $socialId) {
260
+        $user = User::where(function($query) use ($socialUser, $socialId) {
261 261
             $query->where($socialId, $socialUser->getId())
262 262
                 ->orWhereEncrypted('email', $socialUser->getEmail());
263 263
         })->first();
Please login to merge, or discard this patch.