aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20/ShareDisableChecker.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Share20/ShareDisableChecker.php')
-rw-r--r--lib/private/Share20/ShareDisableChecker.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/private/Share20/ShareDisableChecker.php b/lib/private/Share20/ShareDisableChecker.php
index 1e72ce84a59..8cf523b8b31 100644
--- a/lib/private/Share20/ShareDisableChecker.php
+++ b/lib/private/Share20/ShareDisableChecker.php
@@ -1,5 +1,9 @@
<?php
+/**
+ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
namespace OC\Share20;
use OCP\Cache\CappedMemoryCache;
@@ -21,12 +25,7 @@ class ShareDisableChecker {
$this->sharingDisabledForUsersCache = new CappedMemoryCache();
}
-
- /**
- * @param ?string $userId
- * @return bool
- */
- public function sharingDisabledForUser(?string $userId) {
+ public function sharingDisabledForUser(?string $userId): bool {
if ($userId === null) {
return false;
}