Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: Cleanup in direct editing backend
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Jun 23, 2023
commit e54953610e4635fe99cb172064b6527ccdc4fb54
4 changes: 2 additions & 2 deletions lib/DirectEditing/TextDirectEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function getMimetypes(): array {
/**
* A list of mimetypes that can be opened in the editor optionally
*
* @return array
* @return string[]
*/
public function getMimetypesOptional(): array {
return [];
Expand All @@ -121,7 +121,7 @@ public function getMimetypesOptional(): array {
/**
* Return a list of file creation options to be presented to the user
*
* @return array of ACreateFromTemplate|ACreateEmpty
* @return TextDocumentCreator[]
*/
public function getCreators(): array {
return [
Expand Down
3 changes: 2 additions & 1 deletion lib/DirectEditing/TextDocumentCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use OCP\IL10N;

class TextDocumentCreator extends ACreateEmpty {
public const CREATOR_ID = 'textdocument';

/**
* @var IL10N
Expand All @@ -38,7 +39,7 @@ public function __construct(IL10N $l10n) {
}

public function getId(): string {
return 'textdocument';
return self::CREATOR_ID;
}

public function getName(): string {
Expand Down