mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
Just some reorder of arguments..
This commit is contained in:
@@ -134,14 +134,31 @@ class NoteApiController extends ApiController {
|
||||
* @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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user