]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Mail.php
Merge pull request #6737 from MrPetovan/bug/6630-fix-empty-label-profile
[friendica.git] / src / Model / Mail.php
index b47d4ac8e33c46b5d9358148c0088342031e808b..2d304e55f8b92142544fd65781a424af44b56880 100644 (file)
@@ -10,7 +10,6 @@ use Friendica\Core\Logger;
 use Friendica\Core\System;
 use Friendica\Core\Worker;
 use Friendica\Database\DBA;
-use Friendica\Model\Photo;
 use Friendica\Network\Probe;
 use Friendica\Util\DateTimeFormat;
 
@@ -26,6 +25,8 @@ class Mail
         * @param string  $body      message body, default empty
         * @param string  $subject   message subject, default empty
         * @param string  $replyto   reply to
+        * @return int
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function send($recipient = 0, $body = '', $subject = '', $replyto = '')
        {
@@ -156,12 +157,15 @@ class Mail
        }
 
        /**
-        * @param string $recipient recipient, default empty
+        * @param array  $recipient recipient, default empty
         * @param string $body      message body, default empty
         * @param string $subject   message subject, default empty
         * @param string $replyto   reply to, default empty
+        * @return int
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+        * @throws \ImagickException
         */
-       public static function sendWall($recipient = '', $body = '', $subject = '', $replyto = '')
+       public static function sendWall(array $recipient = [], $body = '', $subject = '', $replyto = '')
        {
                if (!$recipient) {
                        return -1;