aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib/TokenHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federatedfilesharing/lib/TokenHandler.php')
-rw-r--r--apps/federatedfilesharing/lib/TokenHandler.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/federatedfilesharing/lib/TokenHandler.php b/apps/federatedfilesharing/lib/TokenHandler.php
index e0a6d2cbe8c..0151d12f5d9 100644
--- a/apps/federatedfilesharing/lib/TokenHandler.php
+++ b/apps/federatedfilesharing/lib/TokenHandler.php
@@ -17,16 +17,14 @@ use OCP\Security\ISecureRandom;
class TokenHandler {
public const TOKEN_LENGTH = 15;
- /** @var ISecureRandom */
- private $secureRandom;
-
/**
* TokenHandler constructor.
*
* @param ISecureRandom $secureRandom
*/
- public function __construct(ISecureRandom $secureRandom) {
- $this->secureRandom = $secureRandom;
+ public function __construct(
+ private ISecureRandom $secureRandom,
+ ) {
}
/**