Fix issues proposed by sonar (#986)

This commit is contained in:
Alexis Saettler
2018-03-08 22:37:27 +01:00
committed by GitHub
parent 83fbc5fc48
commit 558515b59a
37 changed files with 86 additions and 91 deletions
@@ -63,7 +63,7 @@ class ApiNoteController extends ApiController
}
try {
$contact = Contact::where('account_id', auth()->user()->account_id)
Contact::where('account_id', auth()->user()->account_id)
->where('id', $request->input('contact_id'))
->firstOrFail();
} catch (ModelNotFoundException $e) {
@@ -115,7 +115,7 @@ class ApiNoteController extends ApiController
}
try {
$contact = Contact::where('account_id', auth()->user()->account_id)
Contact::where('account_id', auth()->user()->account_id)
->where('id', $request->input('contact_id'))
->firstOrFail();
} catch (ModelNotFoundException $e) {