]> git.mxchange.org Git - friendica.git/commitdiff
Fix code style
authorArt4 <art4@wlabs.de>
Tue, 4 Feb 2025 19:20:13 +0000 (19:20 +0000)
committerArt4 <art4@wlabs.de>
Tue, 4 Feb 2025 19:20:13 +0000 (19:20 +0000)
src/Content/Conversation.php
src/Module/Filer/SaveTag.php

index 3b3610956f1c39a3a8e031cc9d5d963e756f8705..3394b3c798e8e0ac1ed37c92d475fa2509171a69 100644 (file)
@@ -207,7 +207,7 @@ class Conversation
 
                if ($total === 0) {
                        throw new InternalServerErrorException(sprintf('There has to be at least one Liker for verb "%s"', $verb));
-               } else if ($total === 1) {
+               } elseif ($total === 1) {
                        $likerString = $likers[0];
                } else {
                        if ($total < $this->config->get('system', 'max_likers')) {
@@ -976,8 +976,8 @@ class Conversation
                }
 
                foreach ($items as $key => $row) {
-                       $items[$key]['emojis']      = $emojis[$key] ?? [];
-                       $items[$key]['counts']      = $counts[$key] ?? 0;
+                       $items[$key]['emojis']      = $emojis[$key]      ?? [];
+                       $items[$key]['counts']      = $counts[$key]      ?? 0;
                        $items[$key]['quoteshares'] = $quoteshares[$key] ?? [];
 
                        $always_display = in_array($mode, [self::MODE_CONTACTS, self::MODE_CONTACT_POSTS]);
@@ -1431,7 +1431,7 @@ class Conversation
        public function getContextLessThreadList(array $items, string $mode, bool $preview, bool $pagedrop, string $formSecurityToken): array
        {
                $threads = [];
-               $uriids = [];
+               $uriids  = [];
 
                foreach ($items as $item) {
                        if (in_array($item['uri-id'], $uriids)) {
@@ -1456,7 +1456,7 @@ class Conversation
 
                        $tags = Tag::populateFromItem($item);
 
-                       $author       = [
+                       $author = [
                                'uid'     => 0,
                                'id'      => $item['author-id'],
                                'network' => $item['author-network'],
@@ -1501,7 +1501,7 @@ class Conversation
 
                        $body_html = ItemModel::prepareBody($item, true, $preview);
 
-                       [$categories, $folders] = $this->item->determineCategoriesTerms($item, $this->session->getLocalUserId());
+                       list($categories, $folders) = $this->item->determineCategoriesTerms($item, $this->session->getLocalUserId());
 
                        if (!empty($item['featured'])) {
                                $pinned = $this->l10n->t('Pinned item');
index 4856d7368101118b22388575471587c6c6159567..63107c417ab256de6fd391402860cd8a70267c15 100644 (file)
@@ -56,7 +56,7 @@ class SaveTag extends BaseModule
 
                $tpl = Renderer::getMarkupTemplate("filer_dialog.tpl");
                echo Renderer::replaceMacros($tpl, [
-                       '$field' => ['term', $this->t("Folder:"), '', '', $filetags, $this->t('- select -')],
+                       '$field'  => ['term', $this->t("Folder:"), '', '', $filetags, $this->t('- select -')],
                        '$submit' => $this->t('Save'),
                ]);