From: Michael Vogel Date: Sun, 6 Mar 2022 13:15:59 +0000 (+0100) Subject: Apply suggestions from code review X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=acba7d25a02827e46298bbb380b96b8ef4e19ca4;p=friendica.git Apply suggestions from code review Co-authored-by: Hypolite Petovan --- diff --git a/src/Protocol/Email.php b/src/Protocol/Email.php index f3a3736ad3..4221dfb6db 100644 --- a/src/Protocol/Email.php +++ b/src/Protocol/Email.php @@ -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;