Skip to content

Commit 8bf27fd

Browse files
committed
chore: Cleanup in direct editing backend
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent a3fb334 commit 8bf27fd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/DirectEditing/TextDirectEditor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function getMimetypes(): array {
112112
/**
113113
* A list of mimetypes that can be opened in the editor optionally
114114
*
115-
* @return array
115+
* @return string[]
116116
*/
117117
public function getMimetypesOptional(): array {
118118
return [];
@@ -121,7 +121,7 @@ public function getMimetypesOptional(): array {
121121
/**
122122
* Return a list of file creation options to be presented to the user
123123
*
124-
* @return array of ACreateFromTemplate|ACreateEmpty
124+
* @return TextDocumentCreator[]
125125
*/
126126
public function getCreators(): array {
127127
return [

lib/DirectEditing/TextDocumentCreator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use OCP\IL10N;
2828

2929
class TextDocumentCreator extends ACreateEmpty {
30+
public const CREATOR_ID = 'textdocument';
3031

3132
/**
3233
* @var IL10N
@@ -38,7 +39,7 @@ public function __construct(IL10N $l10n) {
3839
}
3940

4041
public function getId(): string {
41-
return 'textdocument';
42+
return self::CREATOR_ID;
4243
}
4344

4445
public function getName(): string {

0 commit comments

Comments
 (0)