Completed
Push — master ( 40cb4d...e51ead )
by Sergi Tur
171:30 queued 141:29
created
src/Console/stubs/AdminUserSeeder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
             factory(App\User::class)->create([
19 19
                     "name" => env('ADMIN_USER', "$USER_NAME$"),
20 20
                     "email" => env('ADMIN_EMAIL', "$USER_EMAIL"),
21
-                    "password" => bcrypt(env('ADMIN_PWD', '123456'))]);
21
+                    "password" => bcrypt(env('ADMIN_PWD', '123456')) ]);
22 22
         } catch (\Illuminate\Database\QueryException $exception) {
23 23
         }
24 24
     }
Please login to merge, or discard this patch.
src/stubs/LoginController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function __construct()
49 49
     {
50
-        $this->middleware('guest', ['except' => 'logout']);
50
+        $this->middleware('guest', [ 'except' => 'logout' ]);
51 51
     }
52 52
 
53 53
     /**
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         if ($this->username() === 'email') {
72 72
             return $this->attemptLoginAtAuthenticatesUsers($request);
73 73
         }
74
-        if (! $this->attemptLoginAtAuthenticatesUsers($request)) {
74
+        if (!$this->attemptLoginAtAuthenticatesUsers($request)) {
75 75
             return $this->attempLoginUsingUsernameAsAnEmail($request);
76 76
         }
77 77
         return false;
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     protected function attempLoginUsingUsernameAsAnEmail(Request $request)
87 87
     {
88 88
         return $this->guard()->attempt(
89
-            ['email' => $request->input('username'), 'password' => $request->input('password')],
89
+            [ 'email' => $request->input('username'), 'password' => $request->input('password') ],
90 90
             $request->has('remember')
91 91
         );
92 92
     }
Please login to merge, or discard this patch.