]> git.mxchange.org Git - friendica.git/commitdiff
Apply suggestions from code review
authorMichael Vogel <icarus@dabo.de>
Sun, 6 Mar 2022 13:15:59 +0000 (14:15 +0100)
committerGitHub <noreply@github.com>
Sun, 6 Mar 2022 13:15:59 +0000 (14:15 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Protocol/Email.php

index f3a3736ad31bd07475f0b197935a8a5a0ab8f0e7..4221dfb6db9b1459307d26e766e442f1b6ac777c 100644 (file)
@@ -68,7 +68,7 @@ class Email
         * @return array
         * @throws \Exception
         */
-       public static function poll($mbox, $email_addr): array
+       public static function poll(Connection $mbox, $email_addr): array
        {
                if (!$mbox || !$email_addr) {
                        return [];
@@ -130,7 +130,7 @@ class Email
         * @return array
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       public static function getMessage($mbox, $uid, $reply, $item): array
+       public static function getMessage(Connection $mbox, $uid, $reply, $item): array
        {
                $ret = $item;