aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/Cache.php2
-rw-r--r--apps/files_sharing/lib/Controller/PublicPreviewController.php2
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php8
-rw-r--r--apps/files_sharing/lib/DeleteOrphanedSharesJob.php2
-rw-r--r--apps/files_sharing/lib/External/Manager.php2
-rw-r--r--apps/files_sharing/lib/Helper.php4
-rw-r--r--apps/files_sharing/lib/Listener/LoadSidebarListener.php5
-rw-r--r--apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php2
-rw-r--r--apps/files_sharing/lib/MountProvider.php2
-rw-r--r--apps/files_sharing/lib/Notification/Listener.php2
-rw-r--r--apps/files_sharing/lib/OrphanHelper.php2
-rw-r--r--apps/files_sharing/lib/SharedMount.php4
-rw-r--r--apps/files_sharing/lib/SharesReminderJob.php4
13 files changed, 22 insertions, 19 deletions
diff --git a/apps/files_sharing/lib/Cache.php b/apps/files_sharing/lib/Cache.php
index 26a9bc7b524..94427f7a979 100644
--- a/apps/files_sharing/lib/Cache.php
+++ b/apps/files_sharing/lib/Cache.php
@@ -43,7 +43,7 @@ class Cache extends CacheJail {
$storage,
ICacheEntry $sourceRootInfo,
CacheDependencies $dependencies,
- IShare $share
+ IShare $share,
) {
$this->storage = $storage;
$this->sourceRootInfo = $sourceRootInfo;
diff --git a/apps/files_sharing/lib/Controller/PublicPreviewController.php b/apps/files_sharing/lib/Controller/PublicPreviewController.php
index 4dc3989f866..a2e244c7ba0 100644
--- a/apps/files_sharing/lib/Controller/PublicPreviewController.php
+++ b/apps/files_sharing/lib/Controller/PublicPreviewController.php
@@ -83,7 +83,7 @@ class PublicPreviewController extends PublicShareController {
string $file = '',
int $x = 32,
int $y = 32,
- $a = false
+ $a = false,
) {
if ($token === '' || $x === 0 || $y === 0) {
return new DataResponse([], Http::STATUS_BAD_REQUEST);
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index 9ca9774013c..cf835874677 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -88,7 +88,7 @@ class ShareAPIController extends OCSController {
private LoggerInterface $logger,
private IProviderFactory $factory,
private IMailer $mailer,
- ?string $userId = null
+ ?string $userId = null,
) {
parent::__construct($appName, $request);
$this->currentUser = $userId;
@@ -565,7 +565,7 @@ class ShareAPIController extends OCSController {
string $note = '',
string $label = '',
?string $attributes = null,
- ?string $sendMail = null
+ ?string $sendMail = null,
): DataResponse {
$share = $this->shareManager->newShare();
@@ -930,7 +930,7 @@ class ShareAPIController extends OCSController {
string $reshares = 'false',
string $subfiles = 'false',
string $path = '',
- string $include_tags = 'false'
+ string $include_tags = 'false',
): DataResponse {
$node = null;
if ($path !== '') {
@@ -978,7 +978,7 @@ class ShareAPIController extends OCSController {
bool $sharedWithMe = false,
bool $reShares = false,
bool $subFiles = false,
- bool $includeTags = false
+ bool $includeTags = false,
): array {
if ($sharedWithMe) {
return $this->getSharedWithMe($node, $includeTags);
diff --git a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
index 2315ff5c120..4ab95c2587b 100644
--- a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
+++ b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
@@ -38,7 +38,7 @@ class DeleteOrphanedSharesJob extends TimedJob {
public function __construct(
ITimeFactory $time,
IDBConnection $db,
- LoggerInterface $logger
+ LoggerInterface $logger,
) {
parent::__construct($time);
diff --git a/apps/files_sharing/lib/External/Manager.php b/apps/files_sharing/lib/External/Manager.php
index a3226e9f3dd..86c9ae830e4 100644
--- a/apps/files_sharing/lib/External/Manager.php
+++ b/apps/files_sharing/lib/External/Manager.php
@@ -84,7 +84,7 @@ class Manager {
IUserManager $userManager,
IUserSession $userSession,
IEventDispatcher $eventDispatcher,
- LoggerInterface $logger
+ LoggerInterface $logger,
) {
$user = $userSession->getUser();
$this->connection = $connection;
diff --git a/apps/files_sharing/lib/Helper.php b/apps/files_sharing/lib/Helper.php
index f2f92679e2f..3f1937396a0 100644
--- a/apps/files_sharing/lib/Helper.php
+++ b/apps/files_sharing/lib/Helper.php
@@ -28,12 +28,12 @@ class Helper {
*/
public static function generateUniqueTarget($path, $excludeList, $view) {
$pathinfo = pathinfo($path);
- $ext = isset($pathinfo['extension']) ? '.'.$pathinfo['extension'] : '';
+ $ext = isset($pathinfo['extension']) ? '.' . $pathinfo['extension'] : '';
$name = $pathinfo['filename'];
$dir = $pathinfo['dirname'];
$i = 2;
while ($view->file_exists($path) || in_array($path, $excludeList)) {
- $path = Filesystem::normalizePath($dir . '/' . $name . ' ('.$i.')' . $ext);
+ $path = Filesystem::normalizePath($dir . '/' . $name . ' (' . $i . ')' . $ext);
$i++;
}
diff --git a/apps/files_sharing/lib/Listener/LoadSidebarListener.php b/apps/files_sharing/lib/Listener/LoadSidebarListener.php
index 7fd10b38779..b00e937d675 100644
--- a/apps/files_sharing/lib/Listener/LoadSidebarListener.php
+++ b/apps/files_sharing/lib/Listener/LoadSidebarListener.php
@@ -22,7 +22,10 @@ use OCP\Util;
*/
class LoadSidebarListener implements IEventListener {
- public function __construct(private IInitialState $initialState, private IManager $shareManager) {
+ public function __construct(
+ private IInitialState $initialState,
+ private IManager $shareManager,
+ ) {
}
public function handle(Event $event): void {
diff --git a/apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php b/apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php
index e13c3354f27..009692c5667 100644
--- a/apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php
+++ b/apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php
@@ -47,7 +47,7 @@ class SharingCheckMiddleware extends Middleware {
IAppManager $appManager,
IControllerMethodReflector $reflector,
IManager $shareManager,
- IRequest $request
+ IRequest $request,
) {
$this->appName = $appName;
$this->config = $config;
diff --git a/apps/files_sharing/lib/MountProvider.php b/apps/files_sharing/lib/MountProvider.php
index 64847bf5a5f..5313f40ff6b 100644
--- a/apps/files_sharing/lib/MountProvider.php
+++ b/apps/files_sharing/lib/MountProvider.php
@@ -30,7 +30,7 @@ class MountProvider implements IMountProvider {
protected IManager $shareManager,
protected LoggerInterface $logger,
protected IEventDispatcher $eventDispatcher,
- protected ICacheFactory $cacheFactory
+ protected ICacheFactory $cacheFactory,
) {
}
diff --git a/apps/files_sharing/lib/Notification/Listener.php b/apps/files_sharing/lib/Notification/Listener.php
index aaac32897d7..e925ca75fb8 100644
--- a/apps/files_sharing/lib/Notification/Listener.php
+++ b/apps/files_sharing/lib/Notification/Listener.php
@@ -30,7 +30,7 @@ class Listener {
public function __construct(
INotificationManager $notificationManager,
IShareManager $shareManager,
- IGroupManager $groupManager
+ IGroupManager $groupManager,
) {
$this->notificationManager = $notificationManager;
$this->shareManager = $shareManager;
diff --git a/apps/files_sharing/lib/OrphanHelper.php b/apps/files_sharing/lib/OrphanHelper.php
index 94fe4f08318..c5ad93a354f 100644
--- a/apps/files_sharing/lib/OrphanHelper.php
+++ b/apps/files_sharing/lib/OrphanHelper.php
@@ -19,7 +19,7 @@ class OrphanHelper {
public function __construct(
IDBConnection $connection,
- IRootFolder $rootFolder
+ IRootFolder $rootFolder,
) {
$this->connection = $connection;
$this->rootFolder = $rootFolder;
diff --git a/apps/files_sharing/lib/SharedMount.php b/apps/files_sharing/lib/SharedMount.php
index 6c7178132ad..ddd6af3845d 100644
--- a/apps/files_sharing/lib/SharedMount.php
+++ b/apps/files_sharing/lib/SharedMount.php
@@ -55,7 +55,7 @@ class SharedMount extends MountPoint implements MoveableMount, ISharedMountPoint
CappedMemoryCache $folderExistCache,
IEventDispatcher $eventDispatcher,
IUser $user,
- ICache $cache
+ ICache $cache,
) {
$this->user = $user;
$this->recipientView = $recipientView;
@@ -81,7 +81,7 @@ class SharedMount extends MountPoint implements MoveableMount, ISharedMountPoint
private function verifyMountPoint(
\OCP\Share\IShare $share,
array $mountpoints,
- CappedMemoryCache $folderExistCache
+ CappedMemoryCache $folderExistCache,
) {
$cacheKey = $this->user->getUID() . '/' . $share->getId() . '/' . $share->getTarget();
$cached = $this->cache->get($cacheKey);
diff --git a/apps/files_sharing/lib/SharesReminderJob.php b/apps/files_sharing/lib/SharesReminderJob.php
index 5e15d2851f4..af279bbc146 100644
--- a/apps/files_sharing/lib/SharesReminderJob.php
+++ b/apps/files_sharing/lib/SharesReminderJob.php
@@ -84,7 +84,7 @@ class SharesReminderJob extends TimedJob {
} else {
$sharesResult = $this->getSharesData();
}
- foreach($sharesResult as $share) {
+ foreach ($sharesResult as $share) {
if ($share['share_type'] === IShare::TYPE_EMAIL) {
$id = "ocMailShare:$share[id]";
} else {
@@ -216,7 +216,7 @@ class SharesReminderJob extends TimedJob {
* @param IShare $share Share that was obtained with {@link getShares}
* @return array|null Info needed to send a reminder
*/
- private function prepareReminder(IShare $share): array|null {
+ private function prepareReminder(IShare $share): ?array {
$sharedWith = $share->getSharedWith();
$reminderInfo = [];
if ($share->getShareType() == IShare::TYPE_USER) {