@@ -65,6 +65,9 @@ |
||
| 65 | 65 | $this->timeFactory = $timeFactory; |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | + /** |
|
| 69 | + * @return string |
|
| 70 | + */ |
|
| 68 | 71 | public function get() { |
| 69 | 72 | // First check if there is a local valid discovery file |
| 70 | 73 | try { |
@@ -28,7 +28,6 @@ |
||
| 28 | 28 | use OCP\Http\Client\IClientService; |
| 29 | 29 | use OCP\IConfig; |
| 30 | 30 | use OCP\IL10N; |
| 31 | -use OCP\Notification\IApp; |
|
| 32 | 31 | |
| 33 | 32 | class DiscoveryManager { |
| 34 | 33 | /** @var IClientService */ |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace OCA\Richdocuments\Controller; |
| 13 | 13 | |
| 14 | 14 | use OCA\Richdocuments\TokenManager; |
| 15 | -use OCA\Richdocuments\WOPI\Parser; |
|
| 16 | 15 | use \OCP\AppFramework\Controller; |
| 17 | 16 | use OCP\AppFramework\Http; |
| 18 | 17 | use OCP\AppFramework\Http\JSONResponse; |
@@ -28,7 +28,6 @@ |
||
| 28 | 28 | use OCP\AppFramework\Http\DataResponse; |
| 29 | 29 | use OCP\AppFramework\OCS\OCSBadRequestException; |
| 30 | 30 | use OCP\AppFramework\OCS\OCSNotFoundException; |
| 31 | -use OCP\Files\File; |
|
| 32 | 31 | use OCP\Files\Folder; |
| 33 | 32 | use OCP\Files\IRootFolder; |
| 34 | 33 | use OCP\Files\NotFoundException; |
@@ -31,7 +31,6 @@ |
||
| 31 | 31 | use OCP\Files\NotFoundException; |
| 32 | 32 | use OCP\IConfig; |
| 33 | 33 | use OCP\IL10N; |
| 34 | -use OCP\IPreview; |
|
| 35 | 34 | use OCP\IURLGenerator; |
| 36 | 35 | use OC\Files\AppData\Factory; |
| 37 | 36 | |
@@ -288,6 +288,9 @@ discard block |
||
| 288 | 288 | })); |
| 289 | 289 | } |
| 290 | 290 | |
| 291 | + /** |
|
| 292 | + * @param string $type |
|
| 293 | + */ |
|
| 291 | 294 | public function getAllFormatted($type) { |
| 292 | 295 | if (!array_key_exists($type, self::$tplTypes)) { |
| 293 | 296 | return []; |
@@ -419,6 +422,9 @@ discard block |
||
| 419 | 422 | ]; |
| 420 | 423 | } |
| 421 | 424 | |
| 425 | + /** |
|
| 426 | + * @param integer $fileId |
|
| 427 | + */ |
|
| 422 | 428 | public function isTemplate($fileId) { |
| 423 | 429 | $empty = $this->getEmpty(); |
| 424 | 430 | $system = $this->getSystem(); |