aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Upload/RootCollection.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/dav/lib/Upload/RootCollection.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/dav/lib/Upload/RootCollection.php')
-rw-r--r--apps/dav/lib/Upload/RootCollection.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/dav/lib/Upload/RootCollection.php b/apps/dav/lib/Upload/RootCollection.php
index 1adab40671b..6b12363367a 100644
--- a/apps/dav/lib/Upload/RootCollection.php
+++ b/apps/dav/lib/Upload/RootCollection.php
@@ -14,14 +14,12 @@ use Sabre\DAVACL\PrincipalBackend;
class RootCollection extends AbstractPrincipalCollection {
- /** @var CleanupService */
- private $cleanupService;
-
- public function __construct(PrincipalBackend\BackendInterface $principalBackend,
+ public function __construct(
+ PrincipalBackend\BackendInterface $principalBackend,
string $principalPrefix,
- CleanupService $cleanupService) {
+ private CleanupService $cleanupService,
+ ) {
parent::__construct($principalBackend, $principalPrefix);
- $this->cleanupService = $cleanupService;
}
/**