Add missing return types to controllers

This commit is contained in:
Matias De lellis committed 2021-09-19 20:29:22 -03:00
1 parent 7f81c13a15
commit 3de110ac02
3 files changed
+13 -3

No files matched your search

+5 -1
View File
@@ -92,7 +92,9 @@ class NoteApiController extends ApiController {
/**
* @NoAdminRequired
*
* @CORS
*
* @NoCSRFRequired
*
* @param string $title
@@ -102,6 +104,8 @@ class NoteApiController extends ApiController {
* @param array $sharedWith
* @param array $tags
* @param array $attachments
*
* @return JSONResponse
*/
public function create(string $title,
string $content,
@@ -109,7 +113,7 @@ class NoteApiController extends ApiController {
bool $isPinned = false,
array $sharedWith = [],
array $tags = [],
array $attachments = [])
array $attachments = []): JSONResponse
{
$note = $this->noteService->create($this->userId,
$title,