Apply suggestions from code review

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2022-03-06 14:15:59 +01:00 committed by GitHub
parent 31dbdd3677
commit acba7d25a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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;