aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Avatars
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/Avatars')
-rw-r--r--apps/dav/lib/Avatars/AvatarHome.php12
-rw-r--r--apps/dav/lib/Avatars/AvatarNode.php13
2 files changed, 9 insertions, 16 deletions
diff --git a/apps/dav/lib/Avatars/AvatarHome.php b/apps/dav/lib/Avatars/AvatarHome.php
index 1f86941e592..c3b95db1f4f 100644
--- a/apps/dav/lib/Avatars/AvatarHome.php
+++ b/apps/dav/lib/Avatars/AvatarHome.php
@@ -16,20 +16,16 @@ use Sabre\Uri;
class AvatarHome implements ICollection {
- /** @var array */
- private $principalInfo;
- /** @var IAvatarManager */
- private $avatarManager;
-
/**
* AvatarHome constructor.
*
* @param array $principalInfo
* @param IAvatarManager $avatarManager
*/
- public function __construct($principalInfo, IAvatarManager $avatarManager) {
- $this->principalInfo = $principalInfo;
- $this->avatarManager = $avatarManager;
+ public function __construct(
+ private $principalInfo,
+ private IAvatarManager $avatarManager,
+ ) {
}
public function createFile($name, $data = null) {
diff --git a/apps/dav/lib/Avatars/AvatarNode.php b/apps/dav/lib/Avatars/AvatarNode.php
index 3931ce3ff71..98ee67d3c78 100644
--- a/apps/dav/lib/Avatars/AvatarNode.php
+++ b/apps/dav/lib/Avatars/AvatarNode.php
@@ -11,10 +11,6 @@ use OCP\IAvatar;
use Sabre\DAV\File;
class AvatarNode extends File {
- private $ext;
- private $size;
- private $avatar;
-
/**
* AvatarNode constructor.
*
@@ -22,10 +18,11 @@ class AvatarNode extends File {
* @param string $ext
* @param IAvatar $avatar
*/
- public function __construct($size, $ext, $avatar) {
- $this->size = $size;
- $this->ext = $ext;
- $this->avatar = $avatar;
+ public function __construct(
+ private $size,
+ private $ext,
+ private $avatar,
+ ) {
}
/**