Fixes based on sonar recommandations (#934)

This commit is contained in:
Alexis Saettler
2018-02-26 19:31:39 +01:00
committed by GitHub
parent 20d601580d
commit 9fbf194e89
21 changed files with 76 additions and 126 deletions
+1 -1
View File
@@ -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.');