Completed
Pull Request — master (#5566)
by
unknown
26s
created
src/Controllers/AuthController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             return redirect($this->redirectPath());
34 34
         }
35 35
         $returnUrl = $request->get('returnUrl');
36
-        return view($this->loginView,['returnUrl'=>$returnUrl]);
36
+        return view($this->loginView, ['returnUrl'=>$returnUrl]);
37 37
     }
38 38
 
39 39
     /**
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     {
100 100
         $form = $this->settingForm();
101 101
         $form->tools(
102
-            function (Form\Tools $tools) {
102
+            function(Form\Tools $tools) {
103 103
                 $tools->disableList();
104 104
                 $tools->disableDelete();
105 105
                 $tools->disableView();
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $form->image('avatar', trans('admin.avatar'));
138 138
         $form->password('password', trans('admin.password'))->rules('confirmed|required');
139 139
         $form->password('password_confirmation', trans('admin.password_confirmation'))->rules('required')
140
-            ->default(function ($form) {
140
+            ->default(function($form) {
141 141
                 return $form->model()->password;
142 142
             });
143 143
 
@@ -145,13 +145,13 @@  discard block
 block discarded – undo
145 145
 
146 146
         $form->ignore(['password_confirmation']);
147 147
 
148
-        $form->saving(function (Form $form) {
148
+        $form->saving(function(Form $form) {
149 149
             if ($form->password && $form->model()->password != $form->password) {
150 150
                 $form->password = Hash::make($form->password);
151 151
             }
152 152
         });
153 153
 
154
-        $form->saved(function () {
154
+        $form->saved(function() {
155 155
             admin_toastr(trans('admin.update_succeeded'));
156 156
 
157 157
             return redirect(admin_url('auth/setting'));
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         admin_toastr(trans('admin.login_successful'));
197 197
 
198 198
         $request->session()->regenerate();
199
-        if($request->has('returnUrl')){
199
+        if ($request->has('returnUrl')) {
200 200
             $this->redirectTo = $request->input('returnUrl');
201 201
         }
202 202
         return redirect()->intended($this->redirectPath());
Please login to merge, or discard this patch.