From c81a9d1ddd7e5b7fff6a173a159ae78ee7fc7698 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 14 Apr 2023 20:56:43 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Hypolite Petovan --- src/Module/PermissionTooltip.php | 2 +- src/Protocol/ActivityPub/ClientToServer.php | 2 +- src/Protocol/ActivityPub/Receiver.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Module/PermissionTooltip.php b/src/Module/PermissionTooltip.php index 41cc8e0e95..dbfdd5ef26 100644 --- a/src/Module/PermissionTooltip.php +++ b/src/Module/PermissionTooltip.php @@ -242,7 +242,7 @@ class PermissionTooltip extends \Friendica\BaseModule case Tag::ATTRIBUTED: $output .= DI::l10n()->t('Attributed To: %s
', implode(', ', $receiver)); break; - } + } } return $output; diff --git a/src/Protocol/ActivityPub/ClientToServer.php b/src/Protocol/ActivityPub/ClientToServer.php index fed0bc55b1..ee162382b8 100644 --- a/src/Protocol/ActivityPub/ClientToServer.php +++ b/src/Protocol/ActivityPub/ClientToServer.php @@ -225,7 +225,7 @@ class ClientToServer case 'as:audience': $type = Receiver::TARGET_AUDIENCE; break; - } + } $receiver_list = JsonLD::fetchElementArray($object, $element, '@id'); if (empty($receiver_list)) { continue; diff --git a/src/Protocol/ActivityPub/Receiver.php b/src/Protocol/ActivityPub/Receiver.php index 204e631c9b..c11ff83bd9 100644 --- a/src/Protocol/ActivityPub/Receiver.php +++ b/src/Protocol/ActivityPub/Receiver.php @@ -1169,7 +1169,7 @@ class Receiver case 'as:audience': $type = self::TARGET_AUDIENCE; break; - } + } $receivers[$contact['uid']] = ['uid' => $contact['uid'], 'type' => $type]; } -- 2.39.5