Just some reorder of arguments..

This commit is contained in:
Matias De lellis
2020-09-19 14:23:33 -03:00
parent 5e076da22a
commit d002d7cf1e
3 changed files with 60 additions and 26 deletions

View File

@@ -126,14 +126,31 @@ class NoteController extends Controller {
* @param int $id
* @param string $title
* @param string $content
* @param array $attachments
* @param bool $isPinned
* @param array $tags
* @param array $sharedWith
* @param string $color
* @param bool $isPinned
* @param array $tags
* @param array $sharedWith
* @param array $attachments
*/
public function update(int $id, string $title, string $content, array $attachments = [], bool $isPinned, array $tags = [], array $sharedWith = [], string $color): JSONResponse {
$note = $this->noteService->update($this->userId, $id, $title, $content, $attachments, $isPinned, $tags, $sharedWith, $color);
public function update(int $id,
string $title,
string $content,
string $color,
bool $isPinned,
array $tags,
array $sharedWith,
array $attachments): JSONResponse
{
$note = $this->noteService->update($this->userId,
$id,
$title,
$content,
$color,
$isPinned,
$tags,
$sharedWith,
$attachments);
if (is_null($note)) {
return new JSONResponse([], Http::STATUS_NOT_FOUND);
}