Files
piratepoet/tests/integration/Cron/Workers/BounceTestMockAPI.php
Ján Mikláš 3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00

19 lines
372 B
PHP

<?php
namespace MailPoet\Cron\Workers\Bounce;
if (!defined('ABSPATH')) exit;
class BounceTestMockAPI {
function checkBounces(array $emails) {
return array_map(
function ($email) {
return array(
'address' => $email,
'bounce' => preg_match('/(hard|soft)/', $email, $m) ? $m[1] : null,
);
},
$emails
);
}
}