]> git.mxchange.org Git - friendica.git/commitdiff
Fix errors in Protocol namespace
authorArt4 <art4@wlabs.de>
Sat, 7 Dec 2024 14:45:47 +0000 (14:45 +0000)
committerArt4 <art4@wlabs.de>
Sat, 7 Dec 2024 14:45:47 +0000 (14:45 +0000)
src/Navigation/Notifications/ValueObject/FormattedNavNotification.php
src/Protocol/Feed.php
src/Protocol/HTTP/MediaType.php
src/Protocol/Relay.php

index 913618294d65ab0a3285341172d358164037e5b9..16543f9ac1d1f73eede43e06d7444fff180608fe 100644 (file)
@@ -11,6 +11,8 @@ use Friendica\BaseEntity;
 
 /**
  * A view-only object for printing item notifications to the frontend
+ *
+ * @property-read bool $seen
  */
 class FormattedNavNotification extends BaseEntity
 {
index 82227b3b47ffde28cced283bbb75eccb90054bef..da635884d9ccf9932341a78576e1a3650a191662 100644 (file)
@@ -1146,7 +1146,6 @@ class Feed
         * @param DOMDocument $doc       XML document
         * @param array       $item      Data of the item that is to be posted
         * @param array       $owner     Contact data of the poster
-        * @param bool        $toplevel  Is it for en entry element (false) or a feed entry (true)?
         * @return DOMElement Entry element
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         * @throws \ImagickException
@@ -1172,14 +1171,13 @@ class Feed
         * @param DOMDocument $doc       XML document
         * @param \DOMElement $entry     Entry element where the content is added
         * @param array       $item      Data of the item that is to be posted
-        * @param array       $owner     Contact data of the poster
         * @param string      $title     Title for the post
         * @param string      $verb      The activity verb
         * @param bool        $complete  Add the "status_net" element?
-        * @return void
+        *
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       private static function entryContent(DOMDocument $doc, DOMElement $entry, array $item, $title, string $verb = '', bool $complete = true)
+       private static function entryContent(DOMDocument $doc, DOMElement $entry, array $item, $title, string $verb = '', bool $complete = true): void
        {
                if ($verb == '') {
                        $verb = self::constructVerb($item);
@@ -1217,11 +1215,10 @@ class Feed
         * @param object      $entry     The entry element where the elements are added
         * @param array       $item      Data of the item that is to be posted
         * @param array       $owner     Contact data of the poster
-        * @param bool        $complete  default true
-        * @return void
+        *
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       private static function entryFooter(DOMDocument $doc, $entry, array $item, array $owner)
+       private static function entryFooter(DOMDocument $doc, $entry, array $item, array $owner): void
        {
                $mentioned = [];
 
index 323c27df10ce0d3cfcf58bd940724c99a021dfc4..3c7e3af42a4138ef751502209ac50c058ca43529 100644 (file)
@@ -35,7 +35,7 @@ final class MediaType
        private $type;
 
        /**
-        * @var @string
+        * @var string
         */
        private $subType;
 
index 0d6594d7149607611d264b336b30bb09ec8dcfd9..ec0b0f25f5352187617e539b6320bd11fb9ead76 100644 (file)
@@ -7,6 +7,7 @@
 
 namespace Friendica\Protocol;
 
+use Exception;
 use Friendica\Content\Smilies;
 use Friendica\Content\Text\BBCode;
 use Friendica\Core\L10n;
@@ -299,8 +300,6 @@ class Relay
         * Return a list of servers that we serve via the direct relay
         *
         * @param integer $item_id  id of the item that is sent
-        * @param array   $contacts Previously fetched contacts
-        * @param array   $networks Networks of the relay servers
         * @return array of relay servers
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */