aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/External/Cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/External/Cache.php')
-rw-r--r--apps/files_sharing/lib/External/Cache.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/apps/files_sharing/lib/External/Cache.php b/apps/files_sharing/lib/External/Cache.php
index deef16c0f1a..3bf6d09e681 100644
--- a/apps/files_sharing/lib/External/Cache.php
+++ b/apps/files_sharing/lib/External/Cache.php
@@ -9,23 +9,21 @@ namespace OCA\Files_Sharing\External;
use OCP\Federation\ICloudId;
class Cache extends \OC\Files\Cache\Cache {
- /** @var ICloudId */
- private $cloudId;
private $remote;
private $remoteUser;
- private $storage;
/**
* @param Storage $storage
* @param ICloudId $cloudId
*/
- public function __construct($storage, ICloudId $cloudId) {
- $this->cloudId = $cloudId;
- $this->storage = $storage;
- [, $remote] = explode('://', $cloudId->getRemote(), 2);
+ public function __construct(
+ private $storage,
+ private ICloudId $cloudId,
+ ) {
+ [, $remote] = explode('://', $this->cloudId->getRemote(), 2);
$this->remote = $remote;
- $this->remoteUser = $cloudId->getUser();
- parent::__construct($storage);
+ $this->remoteUser = $this->cloudId->getUser();
+ parent::__construct($this->storage);
}
public function get($file) {