refactor: fix bad return types with Psalter (#2435)

This commit is contained in:
Matthew Brown
2019-02-16 13:20:28 -05:00
committed by Alexis Saettler
parent e04de7e101
commit 684ce6bc56
90 changed files with 774 additions and 503 deletions
@@ -68,9 +68,10 @@ class NotesController extends Controller
* @param NotesRequest $request
* @param Contact $contact
* @param Note $note
* @return \Illuminate\Http\Response
*
* @return Note
*/
public function update(NotesRequest $request, Contact $contact, Note $note)
public function update(NotesRequest $request, Contact $contact, Note $note): Note
{
$note->update(
$request->only([
@@ -87,9 +88,10 @@ class NotesController extends Controller
*
* @param Contact $contact
* @param Note $note
* @return \Illuminate\Http\Response
*
* @return void
*/
public function destroy(Contact $contact, Note $note)
public function destroy(Contact $contact, Note $note): void
{
$note->delete();
}