aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/External
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-17 12:40:35 +0200
committerCarl Schwan <carl@carlschwan.eu>2022-10-17 12:40:35 +0200
commit54031e370ac05b127d4bc799de99ce1b643adcbb (patch)
tree36d71151c54c260fbefffdf6ed137862e922b74a /apps/files_sharing/lib/External
parent0a2a4d86870f9738544c67cc494c3f48a8f4e924 (diff)
downloadnextcloud-server-54031e370ac05b127d4bc799de99ce1b643adcbb.tar.gz
nextcloud-server-54031e370ac05b127d4bc799de99ce1b643adcbb.zip
Fix various other small psalm issues
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files_sharing/lib/External')
-rw-r--r--apps/files_sharing/lib/External/Manager.php7
-rw-r--r--apps/files_sharing/lib/External/Mount.php5
2 files changed, 3 insertions, 9 deletions
diff --git a/apps/files_sharing/lib/External/Manager.php b/apps/files_sharing/lib/External/Manager.php
index b9ed4acd57f..68bc6801e46 100644
--- a/apps/files_sharing/lib/External/Manager.php
+++ b/apps/files_sharing/lib/External/Manager.php
@@ -447,14 +447,11 @@ class Manager {
return $result;
}
- /**
- * @param int $remoteShare
- */
- public function processNotification($remoteShare) {
+ public function processNotification(int $remoteShare): void {
$filter = $this->notificationManager->createNotification();
$filter->setApp('files_sharing')
->setUser($this->uid)
- ->setObject('remote_share', (int) $remoteShare);
+ ->setObject('remote_share', (string)$remoteShare);
$this->notificationManager->markProcessed($filter);
}
diff --git a/apps/files_sharing/lib/External/Mount.php b/apps/files_sharing/lib/External/Mount.php
index 2047dede39b..ccd31147f26 100644
--- a/apps/files_sharing/lib/External/Mount.php
+++ b/apps/files_sharing/lib/External/Mount.php
@@ -61,11 +61,8 @@ class Mount extends MountPoint implements MoveableMount {
/**
* Remove the mount points
- *
- * @return mixed
- * @return bool
*/
- public function removeMount() {
+ public function removeMount(): bool {
return $this->manager->removeShare($this->mountPoint);
}