Fix errors in Protocol namespace

This commit is contained in:
Art4 2024-12-07 14:45:47 +00:00
parent 47c2715568
commit d4e4c1505b
4 changed files with 8 additions and 10 deletions

View file

@ -11,6 +11,8 @@ use Friendica\BaseEntity;
/** /**
* A view-only object for printing item notifications to the frontend * A view-only object for printing item notifications to the frontend
*
* @property-read bool $seen
*/ */
class FormattedNavNotification extends BaseEntity class FormattedNavNotification extends BaseEntity
{ {

View file

@ -1146,7 +1146,6 @@ class Feed
* @param DOMDocument $doc XML document * @param DOMDocument $doc XML document
* @param array $item Data of the item that is to be posted * @param array $item Data of the item that is to be posted
* @param array $owner Contact data of the poster * @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 * @return DOMElement Entry element
* @throws \Friendica\Network\HTTPException\InternalServerErrorException * @throws \Friendica\Network\HTTPException\InternalServerErrorException
* @throws \ImagickException * @throws \ImagickException
@ -1172,14 +1171,13 @@ class Feed
* @param DOMDocument $doc XML document * @param DOMDocument $doc XML document
* @param \DOMElement $entry Entry element where the content is added * @param \DOMElement $entry Entry element where the content is added
* @param array $item Data of the item that is to be posted * @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 $title Title for the post
* @param string $verb The activity verb * @param string $verb The activity verb
* @param bool $complete Add the "status_net" element? * @param bool $complete Add the "status_net" element?
* @return void *
* @throws \Friendica\Network\HTTPException\InternalServerErrorException * @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 == '') { if ($verb == '') {
$verb = self::constructVerb($item); $verb = self::constructVerb($item);
@ -1217,11 +1215,10 @@ class Feed
* @param object $entry The entry element where the elements are added * @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 $item Data of the item that is to be posted
* @param array $owner Contact data of the poster * @param array $owner Contact data of the poster
* @param bool $complete default true *
* @return void
* @throws \Friendica\Network\HTTPException\InternalServerErrorException * @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 = []; $mentioned = [];

View file

@ -35,7 +35,7 @@ final class MediaType
private $type; private $type;
/** /**
* @var @string * @var string
*/ */
private $subType; private $subType;

View file

@ -7,6 +7,7 @@
namespace Friendica\Protocol; namespace Friendica\Protocol;
use Exception;
use Friendica\Content\Smilies; use Friendica\Content\Smilies;
use Friendica\Content\Text\BBCode; use Friendica\Content\Text\BBCode;
use Friendica\Core\L10n; use Friendica\Core\L10n;
@ -299,8 +300,6 @@ class Relay
* Return a list of servers that we serve via the direct 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 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 * @return array of relay servers
* @throws \Friendica\Network\HTTPException\InternalServerErrorException * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/ */