]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Conversation.php
Funkwhale context file moved
[friendica.git] / src / Model / Conversation.php
index a485ac2d93e6b4ece8da8a613cb0877df7d1e2b1..7d8b8058f10c8431561132758cecc258dd24476c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -62,7 +62,7 @@ class Conversation
         */
        const RELAY   = 3;
 
-       public static function getByItemUri($item_uri)
+       public static function getByItemUri(string $item_uri)
        {
                return DBA::selectFirst('conversation', [], ['item-uri' => $item_uri]);
        }
@@ -74,7 +74,7 @@ class Conversation
         * @return array Item array with removed conversation data
         * @throws \Exception
         */
-       public static function insert(array $arr)
+       public static function insert(array $arr): array
        {
                if (in_array(($arr['network'] ?? '') ?: Protocol::PHANTOM,
                        [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA, Protocol::OSTATUS, Protocol::TWITTER]) && !empty($arr['uri'])) {