]> git.mxchange.org Git - friendica.git/commitdiff
Changes:
authorRoland Häder <roland@mxchange.org>
Fri, 12 Aug 2022 11:13:05 +0000 (13:13 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 12 Aug 2022 11:13:54 +0000 (13:13 +0200)
- methods should ALWAYS start lower-case, not upper
- documented a bit more

src/Factory/Api/Mastodon/Conversation.php
src/Module/Api/Mastodon/Conversations.php
src/Module/Api/Mastodon/Conversations/Read.php

index b872911592a3c82b378fdde37c9c95004c29d292..4666030509b26aaccd4c0cd066f2792645bde220 100644 (file)
@@ -46,9 +46,12 @@ class Conversation extends BaseFactory
        }
 
        /**
+        * @param int $id Conversation id
+        *
+        * @return \Friendica\Object\Api\Mastodon\Conversation
         * @throws ImagickException|HTTPException\InternalServerErrorException|HTTPException\NotFoundException
         */
-       public function CreateFromConvId(int $id): \Friendica\Object\Api\Mastodon\Conversation
+       public function createFromConvId(int $id): \Friendica\Object\Api\Mastodon\Conversation
        {
                $accounts    = [];
                $unread      = false;
index 16fa127c80ec9820a921ab9f4ffb73bb5165de2d..066c36b9db27458aa1207964a4f91127f939c5a8 100644 (file)
@@ -85,7 +85,7 @@ class Conversations extends BaseApi
 
                while ($conv = DBA::fetch($convs)) {
                        self::setBoundaries($conv['id']);
-                       $conversations[] = DI::mstdnConversation()->CreateFromConvId($conv['id']);
+                       $conversations[] = DI::mstdnConversation()->createFromConvId($conv['id']);
                }
 
                DBA::close($convs);
index 3882b33002d0833dc88787b3e288fd85000db063..b01dc9d7ca0a41a723dcd6a78305bd4921fa6963 100644 (file)
@@ -42,6 +42,6 @@ class Read extends BaseApi
 
                DBA::update('mail', ['seen' => true], ['convid' => $this->parameters['id'], 'uid' => $uid]);
 
-               System::jsonExit(DI::mstdnConversation()->CreateFromConvId($this->parameters['id'])->toArray());
+               System::jsonExit(DI::mstdnConversation()->createFromConvId($this->parameters['id'])->toArray());
        }
 }