* @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
* @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);
* @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 = [];
namespace Friendica\Protocol;
+use Exception;
use Friendica\Content\Smilies;
use Friendica\Content\Text\BBCode;
use Friendica\Core\L10n;
* 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
*/