mirror of
https://github.com/friendica/friendica
synced 2024-12-22 13:20:15 +00:00
Fix errors in Protocol namespace
This commit is contained in:
parent
47c2715568
commit
d4e4c1505b
4 changed files with 8 additions and 10 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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 = [];
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ final class MediaType
|
|||
private $type;
|
||||
|
||||
/**
|
||||
* @var @string
|
||||
* @var string
|
||||
*/
|
||||
private $subType;
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue