aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Sabre/TrashRoot.php
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-10-18 12:04:22 +0200
committerprovokateurin <kate@provokateurin.de>2024-10-21 12:37:59 +0200
commit381077028adf388a7081cf42026570c6be47b198 (patch)
treec0f8e9b6caea80d6b55d6fdcc9188ba57197fa0f /apps/files_trashbin/lib/Sabre/TrashRoot.php
parent4d8d11d2f79da348644e0902e78a2f000498cd52 (diff)
downloadnextcloud-server-381077028adf388a7081cf42026570c6be47b198.tar.gz
nextcloud-server-381077028adf388a7081cf42026570c6be47b198.zip
refactor(apps): Use constructor property promotion when possible
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/files_trashbin/lib/Sabre/TrashRoot.php')
-rw-r--r--apps/files_trashbin/lib/Sabre/TrashRoot.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/apps/files_trashbin/lib/Sabre/TrashRoot.php b/apps/files_trashbin/lib/Sabre/TrashRoot.php
index e2661ccdec7..d6a4f5cc67e 100644
--- a/apps/files_trashbin/lib/Sabre/TrashRoot.php
+++ b/apps/files_trashbin/lib/Sabre/TrashRoot.php
@@ -19,15 +19,10 @@ use Sabre\DAV\ICollection;
class TrashRoot implements ICollection {
- /** @var IUser */
- private $user;
-
- /** @var ITrashManager */
- private $trashManager;
-
- public function __construct(IUser $user, ITrashManager $trashManager) {
- $this->user = $user;
- $this->trashManager = $trashManager;
+ public function __construct(
+ private IUser $user,
+ private ITrashManager $trashManager,
+ ) {
}
public function delete() {