@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * @param string $fileId |
| 83 | 83 | * @param string $shareToken |
| 84 | 84 | * @param string $editoruid |
| 85 | - * @return array |
|
| 85 | + * @return string[] |
|
| 86 | 86 | * @throws \Exception |
| 87 | 87 | */ |
| 88 | 88 | public function getToken($fileId, $shareToken = null, $editoruid = null) { |
@@ -170,6 +170,9 @@ discard block |
||
| 170 | 170 | } |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | + /** |
|
| 174 | + * @param string $userId |
|
| 175 | + */ |
|
| 173 | 176 | public function getTokenForTemplate(File $file, $userId, $templateDestination) { |
| 174 | 177 | $owneruid = $userId; |
| 175 | 178 | $editoruid = $userId; |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | use OC\Share\Constants; |
| 25 | 25 | use OCA\Richdocuments\Db\WopiMapper; |
| 26 | 26 | use OCA\Richdocuments\Helper; |
| 27 | -use OCA\Richdocuments\Db\Wopi; |
|
| 28 | 27 | use OCA\Richdocuments\WOPI\Parser; |
| 29 | 28 | use OCP\Files\File; |
| 30 | 29 | use OCP\Files\IRootFolder; |