From 30798eb6c238a0090fd42d2b44644f4fc24d8c8d Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 20 Oct 2023 09:08:08 +0200 Subject: refactor(objectstorage): cleanup types Signed-off-by: Thomas Citharel --- .../Files/ObjectStore/AppdataPreviewObjectStoreStorage.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/private/Files/ObjectStore/AppdataPreviewObjectStoreStorage.php') diff --git a/lib/private/Files/ObjectStore/AppdataPreviewObjectStoreStorage.php b/lib/private/Files/ObjectStore/AppdataPreviewObjectStoreStorage.php index 2f6db935236..2c473cb6da9 100644 --- a/lib/private/Files/ObjectStore/AppdataPreviewObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/AppdataPreviewObjectStoreStorage.php @@ -26,9 +26,12 @@ declare(strict_types=1); namespace OC\Files\ObjectStore; class AppdataPreviewObjectStoreStorage extends ObjectStoreStorage { - /** @var string */ - private $internalId; + private string $internalId; + /** + * @param array $params + * @throws \Exception + */ public function __construct($params) { if (!isset($params['internal-id'])) { throw new \Exception('missing id in parameters'); @@ -37,7 +40,7 @@ class AppdataPreviewObjectStoreStorage extends ObjectStoreStorage { parent::__construct($params); } - public function getId() { + public function getId(): string { return 'object::appdata::preview:' . $this->internalId; } } -- cgit v1.2.3