Move Shared argument at the end..

This commit is contained in:
Matias De lellis
2020-09-19 17:56:15 -03:00
parent 10442c5117
commit 80ed5f59ad
3 changed files with 14 additions and 14 deletions

View File

@@ -137,8 +137,8 @@ class NoteApiController extends ApiController {
* @param string $color
* @param bool $isPinned
* @param array $tags
* @param array $sharedWith
* @param array $attachments
* @param array $sharedWith
*/
public function update(int $id,
string $title,
@@ -146,8 +146,8 @@ class NoteApiController extends ApiController {
string $color,
bool $isPinned,
array $tags,
array $sharedWith,
array $attachments): JSONResponse
array $attachments,
array $sharedWith): JSONResponse
{
$note = $this->noteService->update($this->userId,
$id,
@@ -156,8 +156,8 @@ class NoteApiController extends ApiController {
$color,
$isPinned,
$tags,
$sharedWith,
$attachments);
$attachments,
$sharedWith);
if (is_null($note)) {
return new JSONResponse([], Http::STATUS_NOT_FOUND);

View File

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