aboutsummaryrefslogtreecommitdiffstats
path: root/apps/testing/lib/Controller/LockingController.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/testing/lib/Controller/LockingController.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/testing/lib/Controller/LockingController.php')
-rw-r--r--apps/testing/lib/Controller/LockingController.php35
1 files changed, 8 insertions, 27 deletions
diff --git a/apps/testing/lib/Controller/LockingController.php b/apps/testing/lib/Controller/LockingController.php
index 14135a4929d..e226126630f 100644
--- a/apps/testing/lib/Controller/LockingController.php
+++ b/apps/testing/lib/Controller/LockingController.php
@@ -23,21 +23,6 @@ use OCP\Lock\LockedException;
class LockingController extends OCSController {
- /** @var ILockingProvider */
- protected $lockingProvider;
-
- /** @var FakeDBLockingProvider */
- protected $fakeDBLockingProvider;
-
- /** @var IDBConnection */
- protected $connection;
-
- /** @var IConfig */
- protected $config;
-
- /** @var IRootFolder */
- protected $rootFolder;
-
/**
* @param string $appName
* @param IRequest $request
@@ -47,20 +32,16 @@ class LockingController extends OCSController {
* @param IConfig $config
* @param IRootFolder $rootFolder
*/
- public function __construct($appName,
+ public function __construct(
+ $appName,
IRequest $request,
- ILockingProvider $lockingProvider,
- FakeDBLockingProvider $fakeDBLockingProvider,
- IDBConnection $connection,
- IConfig $config,
- IRootFolder $rootFolder) {
+ protected ILockingProvider $lockingProvider,
+ protected FakeDBLockingProvider $fakeDBLockingProvider,
+ protected IDBConnection $connection,
+ protected IConfig $config,
+ protected IRootFolder $rootFolder,
+ ) {
parent::__construct($appName, $request);
-
- $this->lockingProvider = $lockingProvider;
- $this->fakeDBLockingProvider = $fakeDBLockingProvider;
- $this->connection = $connection;
- $this->config = $config;
- $this->rootFolder = $rootFolder;
}
/**