Apply fixes from StyleCI

This commit is contained in:
Manish Verma
2021-12-17 06:19:23 +00:00
committed by Manish Verma
parent 2f985011e9
commit 8ef067dbc5
23 changed files with 47 additions and 57 deletions

View File

@@ -104,11 +104,11 @@ class ProfileController extends Controller
Input::file('profile_pic')->move($destinationPath, $fileName);
$user->profile_pic = $fileName;
} else {
$user->fill($request->except('profile_pic', 'gender','active','role','is_delete','ban'))->save();
$user->fill($request->except('profile_pic', 'gender', 'active', 'role', 'is_delete', 'ban'))->save();
return redirect('guest')->with('success', 'Profile Updated sucessfully');
}
if ($user->fill($request->except('profile_pic','active','role','is_delete','ban'))->save()) {
if ($user->fill($request->except('profile_pic', 'active', 'role', 'is_delete', 'ban'))->save()) {
return redirect('guest')->with('success', 'Profile Updated sucessfully');
}
}