diff --git a/lib/Controller/Helper.php b/lib/Controller/Helper.php index 07fac0e38..2bdf13ff0 100644 --- a/lib/Controller/Helper.php +++ b/lib/Controller/Helper.php @@ -55,7 +55,7 @@ public function getNoteWithETagCheck(int $id, IRequest $request) : Note { return $note; } - public function getNoteData(Note $note, array $exclude = [], Meta $meta = null) : array { + public function getNoteData(Note $note, array $exclude = [], ?Meta $meta = null) : array { if ($meta === null) { $meta = $this->metaService->update($this->getUID(), $note); } @@ -67,9 +67,9 @@ public function getNoteData(Note $note, array $exclude = [], Meta $meta = null) public function getNotesAndCategories( int $pruneBefore, array $exclude, - string $category = null, + ?string $category = null, int $chunkSize = 0, - string $chunkCursorStr = null + ?string $chunkCursorStr = null ) : array { $userId = $this->getUID(); $chunkCursor = $chunkCursorStr ? ChunkCursor::fromString($chunkCursorStr) : null; diff --git a/lib/Controller/NotesApiController.php b/lib/Controller/NotesApiController.php index fe98a1c1d..5c0d49617 100644 --- a/lib/Controller/NotesApiController.php +++ b/lib/Controller/NotesApiController.php @@ -46,7 +46,7 @@ public function index( string $exclude = '', int $pruneBefore = 0, int $chunkSize = 0, - string $chunkCursor = null + ?string $chunkCursor = null ) : JSONResponse { return $this->helper->handleErrorResponse(function () use ( $category, diff --git a/lib/Service/MetaService.php b/lib/Service/MetaService.php index ea055f2ed..56eb9b586 100644 --- a/lib/Service/MetaService.php +++ b/lib/Service/MetaService.php @@ -131,7 +131,7 @@ private function getIndexedArray(array $data, string $property) : array { return $result; } - private function createMeta(string $userId, Note $note, callable $onError = null) : Meta { + private function createMeta(string $userId, Note $note, ?callable $onError = null) : Meta { $meta = new Meta(); $meta->setUserId($userId); $meta->setFileId($note->getId()); diff --git a/src/components/EditorEasyMDE.vue b/src/components/EditorEasyMDE.vue index 481bb45da..e7e49b773 100644 --- a/src/components/EditorEasyMDE.vue +++ b/src/components/EditorEasyMDE.vue @@ -370,7 +370,7 @@ export default { .upload-button { position: fixed; - inset-inline-end: 64px; + inset-inline-end: 112px; z-index: 10; height: 40px; margin-inline-end: 5px; diff --git a/src/components/NotePlain.vue b/src/components/NotePlain.vue index 1a593832c..758fc706a 100644 --- a/src/components/NotePlain.vue +++ b/src/components/NotePlain.vue @@ -9,7 +9,9 @@