Cancelled
Pull Request — master (#5493)
by
unknown
30s
created
src/Controllers/AuthController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                 \Kavenegar::VerifyLookup($mobile, $token, null, null, config('kavenegar.template.auth'), null);
99 99
             }
100 100
         } catch (Exception $e) {
101
-            \Log::error('Login error. ' . $e->getMessage());
101
+            \Log::error('Login error. '.$e->getMessage());
102 102
             return back()->withInput()->withErrors(['mobile' => 'خطا در ارسال پیامک!']);
103 103
         }
104 104
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     {
146 146
         $form = $this->settingForm();
147 147
         $form->tools(
148
-            function (Form\Tools $tools) {
148
+            function(Form\Tools $tools) {
149 149
                 $tools->disableList();
150 150
                 $tools->disableDelete();
151 151
                 $tools->disableView();
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         $form->image('avatar', trans('admin.avatar'));
184 184
         $form->password('password', trans('admin.password'))->rules('confirmed|required');
185 185
         $form->password('password_confirmation', trans('admin.password_confirmation'))->rules('required')
186
-            ->default(function ($form) {
186
+            ->default(function($form) {
187 187
                 return $form->model()->password;
188 188
             });
189 189
 
@@ -191,13 +191,13 @@  discard block
 block discarded – undo
191 191
 
192 192
         $form->ignore(['password_confirmation']);
193 193
 
194
-        $form->saving(function (Form $form) {
194
+        $form->saving(function(Form $form) {
195 195
             if ($form->password && $form->model()->password != $form->password) {
196 196
                 $form->password = Hash::make($form->password);
197 197
             }
198 198
         });
199 199
 
200
-        $form->saved(function () {
200
+        $form->saved(function() {
201 201
             admin_toastr(trans('admin.update_succeeded'));
202 202
 
203 203
             return redirect(admin_url('auth/setting'));
Please login to merge, or discard this patch.