File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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 [
Original file line number Diff line number Diff line change 2727use OCP \IL10N ;
2828
2929class 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 {
You can’t perform that action at this time.
0 commit comments