]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Diaspora/Receive.php
spelling: protocol
[friendica.git] / src / Module / Diaspora / Receive.php
index 3b1049361880fcc59b76c61ef02cf9c62a6ef8c9..4df2192d394c06dfe34cbf698342f89a2df476df 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -67,6 +67,7 @@ class Receive extends BaseModule
        /**
         * Receive a public Diaspora posting
         *
+        * @return void
         * @throws HTTPException\InternalServerErrorException
         * @throws \ImagickException
         */
@@ -84,6 +85,7 @@ class Receive extends BaseModule
        /**
         * Receive a Diaspora posting for a user
         *
+        * @return void
         * @throws HTTPException\InternalServerErrorException
         * @throws \ImagickException
         */
@@ -99,7 +101,7 @@ class Receive extends BaseModule
                }
 
                if ($importer['account-type'] == User::ACCOUNT_TYPE_COMMUNITY) {
-                       // Communities aren't working with the Diaspora protoccol
+                       // Communities aren't working with the Diaspora protocol
                        // We throw an "accepted" here, so that the sender doesn't repeat the delivery
                        throw new HTTPException\AcceptedException();
                }
@@ -127,7 +129,7 @@ class Receive extends BaseModule
         * @throws HTTPException\InternalServerErrorException
         * @throws \ImagickException
         */
-       private function decodePost(bool $public = true, string $privKey = '')
+       private function decodePost(bool $public = true, string $privKey = ''): array
        {
                if (empty($_POST['xml'])) {