aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2025-01-30 16:56:48 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2025-02-13 11:45:33 +0100
commited5b7ae16150cb4fa67563288396a729b5654005 (patch)
treee51862b64322678c6fa4caf26fd64f1f166f6f96 /apps/files_sharing/lib/Controller
parented9b47462f25937831471ba1aabcc03757e5dee5 (diff)
downloadnextcloud-server-ed5b7ae16150cb4fa67563288396a729b5654005.tar.gz
nextcloud-server-ed5b7ae16150cb4fa67563288396a729b5654005.zip
chore: re-apply current rector configuration to apps folder
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_sharing/lib/Controller')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index 2e21f90943f..6cacc12828e 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -471,7 +471,7 @@ class ShareAPIController extends OCSController {
$share = $this->formatShare($share);
if ($include_tags) {
- $share = Helper::populateTags([$share], \OCP\Server::get(ITagManager::class));
+ $share = Helper::populateTags([$share], Server::get(ITagManager::class));
} else {
$share = [$share];
}
@@ -754,7 +754,7 @@ class ShareAPIController extends OCSController {
$share->setSharedWith($shareWith);
$share->setPermissions($permissions);
} elseif ($shareType === IShare::TYPE_CIRCLE) {
- if (!\OCP\Server::get(IAppManager::class)->isEnabledForUser('circles') || !class_exists('\OCA\Circles\ShareByCircleProvider')) {
+ if (!Server::get(IAppManager::class)->isEnabledForUser('circles') || !class_exists('\OCA\Circles\ShareByCircleProvider')) {
throw new OCSNotFoundException($this->l->t('You cannot share to a Team if the app is not enabled'));
}
@@ -842,7 +842,7 @@ class ShareAPIController extends OCSController {
}
if ($includeTags) {
- $formatted = Helper::populateTags($formatted, \OCP\Server::get(ITagManager::class));
+ $formatted = Helper::populateTags($formatted, Server::get(ITagManager::class));
}
return $formatted;
@@ -1096,7 +1096,7 @@ class ShareAPIController extends OCSController {
if ($includeTags) {
$formatted =
- Helper::populateTags($formatted, \OCP\Server::get(ITagManager::class));
+ Helper::populateTags($formatted, Server::get(ITagManager::class));
}
return $formatted;
@@ -1971,7 +1971,7 @@ class ShareAPIController extends OCSController {
return true;
}
- if ($share->getShareType() === IShare::TYPE_CIRCLE && \OCP\Server::get(IAppManager::class)->isEnabledForUser('circles')
+ if ($share->getShareType() === IShare::TYPE_CIRCLE && Server::get(IAppManager::class)->isEnabledForUser('circles')
&& class_exists('\OCA\Circles\Api\v1\Circles')) {
$hasCircleId = (str_ends_with($share->getSharedWith(), ']'));
$shareWithStart = ($hasCircleId ? strrpos($share->getSharedWith(), '[') + 1 : 0);