]> git.mxchange.org Git - friendica.git/commitdiff
Apply suggestions from code review
authorMichael Vogel <icarus@dabo.de>
Fri, 14 Apr 2023 18:56:43 +0000 (20:56 +0200)
committerGitHub <noreply@github.com>
Fri, 14 Apr 2023 18:56:43 +0000 (20:56 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Module/PermissionTooltip.php
src/Protocol/ActivityPub/ClientToServer.php
src/Protocol/ActivityPub/Receiver.php

index 41cc8e0e9556713939e3230e53172562ad3cdc22..dbfdd5ef26c63acdf7e9a14eb3721263c3dbce06 100644 (file)
@@ -242,7 +242,7 @@ class PermissionTooltip extends \Friendica\BaseModule
                                case Tag::ATTRIBUTED:
                                        $output .= DI::l10n()->t('<b>Attributed To:</b> %s<br>', implode(', ', $receiver));
                                        break;
-                               }
+                       }
                }
 
                return $output;
index fed0bc55b1ae2579bf8f80a02d8d89f1f3e6b4ec..ee162382b839c6aa896c44cf15b4063cc036dd5c 100644 (file)
@@ -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;
index 204e631c9bf01196f81542d6cc7d986edfcf623d..c11ff83bd985e35603f731244fd79a78f4bbf0f3 100644 (file)
@@ -1169,7 +1169,7 @@ class Receiver
                                                case 'as:audience':
                                                        $type = self::TARGET_AUDIENCE;
                                                        break;
-                                               }
+                                       }
 
                                        $receivers[$contact['uid']] = ['uid' => $contact['uid'], 'type' => $type];
                                }