summaryrefslogtreecommitdiffstats
path: root/core/Controller/PreviewController.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-09-02 12:05:51 +0200
committerGitHub <noreply@github.com>2022-09-02 12:05:51 +0200
commit2397ea72196de42a79e2a5873dcbb07db698f348 (patch)
treecfe0e7e4f6ec10a665eb0a40eae103bafc49203f /core/Controller/PreviewController.php
parent046d5451b15d46581cde846676e0b6d631fedbb7 (diff)
parent30be6ad605f3e451c17de3df74ec3832e1758afe (diff)
downloadnextcloud-server-2397ea72196de42a79e2a5873dcbb07db698f348.tar.gz
nextcloud-server-2397ea72196de42a79e2a5873dcbb07db698f348.zip
Merge branch 'master' into fix/setting/accessibility-title
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core/Controller/PreviewController.php')
-rw-r--r--core/Controller/PreviewController.php42
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(