Fixes based on sonar recommandations (#934)
This commit is contained in:
@@ -240,7 +240,7 @@ class ContactsController extends Controller
|
||||
->withErrors($validator);
|
||||
}
|
||||
|
||||
if ($contact->setName($request->input('firstname'), null, $request->input('lastname')) == false) {
|
||||
if (! $contact->setName($request->input('firstname'), null, $request->input('lastname'))) {
|
||||
return back()
|
||||
->withInput()
|
||||
->withErrors('There has been a problem with saving the name.');
|
||||
|
||||
Reference in New Issue
Block a user