@@ -52,12 +52,12 @@ discard block |
||
| 52 | 52 | $params["async"] = true; |
| 53 | 53 | $params["ip_pool"] = "Main Pool"; |
| 54 | 54 | |
| 55 | - $sendTo = array_unique(array_merge((array) $envelope->getTo(), (array) $envelope->getCC())); |
|
| 55 | + $sendTo = array_unique(array_merge((array)$envelope->getTo(), (array)$envelope->getCC())); |
|
| 56 | 56 | foreach ($sendTo as $email) { |
| 57 | - $params['message']['to'][] = [ 'email' => $email, 'type' => 'to']; |
|
| 57 | + $params['message']['to'][] = ['email' => $email, 'type' => 'to']; |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - foreach ((array) $envelope->getBCC() as $email) { |
|
| 60 | + foreach ((array)$envelope->getBCC() as $email) { |
|
| 61 | 61 | $params['message']['bcc_address'] = $email; |
| 62 | 62 | } |
| 63 | 63 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | } else { |
| 72 | 72 | $resultJson = json_decode($result, true); |
| 73 | 73 | if ($resultJson[0]['status'] == 'error') { |
| 74 | - throw new Exception('Mandrill: '.$resultJson[0]['message']); |
|
| 74 | + throw new Exception('Mandrill: ' . $resultJson[0]['message']); |
|
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | } |