diff options
Diffstat (limited to 'core/Controller/PreviewController.php')
-rw-r--r-- | core/Controller/PreviewController.php | 42 |
1 files changed, 3 insertions, 39 deletions
diff --git a/core/Controller/PreviewController.php b/core/Controller/PreviewController.php index 30b0a45c13d..85dedd0bf68 100644 --- a/core/Controller/PreviewController.php +++ b/core/Controller/PreviewController.php @@ -31,7 +31,6 @@ use OCP\AppFramework\Controller; use OCP\AppFramework\Http; use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\Http\FileDisplayResponse; -use OCP\AppFramework\Utility\ITimeFactory; use OCP\Files\File; use OCP\Files\IRootFolder; use OCP\Files\Node; @@ -40,26 +39,10 @@ use OCP\IPreview; use OCP\IRequest; class PreviewController extends Controller { + private string $userId; + private IRootFolder $root; + private IPreview $preview; - /** @var string */ - private $userId; - - /** @var IRootFolder */ - private $root; - - /** @var IPreview */ - private $preview; - - /** - * PreviewController constructor. - * - * @param string $appName - * @param IRequest $request - * @param IPreview $preview - * @param IRootFolder $root - * @param string $userId - * @param ITimeFactory $timeFactory - */ public function __construct(string $appName, IRequest $request, IPreview $preview, @@ -77,12 +60,6 @@ class PreviewController extends Controller { * @NoAdminRequired * @NoCSRFRequired * - * @param string $file - * @param int $x - * @param int $y - * @param bool $a - * @param bool $forceIcon - * @param string $mode * @return DataResponse|FileDisplayResponse */ public function getPreview( @@ -110,13 +87,6 @@ class PreviewController extends Controller { * @NoAdminRequired * @NoCSRFRequired * - * @param int $fileId - * @param int $x - * @param int $y - * @param bool $a - * @param bool $forceIcon - * @param string $mode - * * @return DataResponse|FileDisplayResponse */ public function getPreviewByFileId( @@ -143,12 +113,6 @@ class PreviewController extends Controller { } /** - * @param Node $node - * @param int $x - * @param int $y - * @param bool $a - * @param bool $forceIcon - * @param string $mode * @return DataResponse|FileDisplayResponse */ private function fetchPreview( |