Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2021-10-05 20:31:59 +0300
committerVitor Mattos <vitor@php.rio>2021-10-07 16:26:56 +0300
commita2e57ab980a419d0f40cf4540b5387d40e65f51a (patch)
tree74be5f60e0ca09a5c395db8b64eb414a8f964a5a /lib/Federation
parent251d68513b7a7d932592edb314581ad2a443de63 (diff)
Changes after run --alter
psalm --alter --issues=MissingClosureReturnType,MismatchingDocblockReturnType,MissingReturnType,InvalidReturnType,MissingParamType Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/Federation')
-rw-r--r--lib/Federation/CloudFederationProviderTalk.php2
-rw-r--r--lib/Federation/FederationManager.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Federation/CloudFederationProviderTalk.php b/lib/Federation/CloudFederationProviderTalk.php
index 3e89bda07..180edd9a2 100644
--- a/lib/Federation/CloudFederationProviderTalk.php
+++ b/lib/Federation/CloudFederationProviderTalk.php
@@ -229,7 +229,7 @@ class CloudFederationProviderTalk implements ICloudFederationProvider {
return $attendee;
}
- private function notifyAboutNewShare(IUser $shareWith, string $shareId, string $sharedByFederatedId, string $sharedByName, string $roomName, string $roomToken, string $serverUrl) {
+ private function notifyAboutNewShare(IUser $shareWith, string $shareId, string $sharedByFederatedId, string $sharedByName, string $roomName, string $roomToken, string $serverUrl): void {
$notification = $this->notificationManager->createNotification();
$notification->setApp(Application::APP_ID)
->setUser($shareWith->getUID())
diff --git a/lib/Federation/FederationManager.php b/lib/Federation/FederationManager.php
index 691d83a6c..5c431b95c 100644
--- a/lib/Federation/FederationManager.php
+++ b/lib/Federation/FederationManager.php
@@ -111,7 +111,7 @@ class FederationManager {
* @throws UnauthorizedException
* @throws MultipleObjectsReturnedException
*/
- public function acceptRemoteRoomShare(IUser $user, int $shareId) {
+ public function acceptRemoteRoomShare(IUser $user, int $shareId): void {
$invitation = $this->invitationMapper->getInvitationById($shareId);
if ($invitation->getUserId() !== $user->getUID()) {
throw new UnauthorizedException('invitation is for a different user');
@@ -140,7 +140,7 @@ class FederationManager {
* @throws UnauthorizedException
* @throws MultipleObjectsReturnedException
*/
- public function rejectRemoteRoomShare(IUser $user, int $shareId) {
+ public function rejectRemoteRoomShare(IUser $user, int $shareId): void {
$invitation = $this->invitationMapper->getInvitationById($shareId);
if ($invitation->getUserId() !== $user->getUID()) {
throw new UnauthorizedException('invitation is for a different user');