From: Michael Vogel Date: Fri, 14 Apr 2023 18:56:43 +0000 (+0200) Subject: Apply suggestions from code review X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c81a9d1ddd7e5b7fff6a173a159ae78ee7fc7698;p=friendica.git Apply suggestions from code review Co-authored-by: Hypolite Petovan --- 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]; }