@@ -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 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | curl_setopt($ch, CURLOPT_HTTPHEADER, |
73 | 73 | array( |
74 | 74 | 'Accept: application/json', |
75 | - 'Content-Length: '.strlen($json)) |
|
75 | + 'Content-Length: ' . strlen($json)) |
|
76 | 76 | ); |
77 | 77 | |
78 | 78 | $result = curl_exec($ch); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | } else { |
83 | 83 | $resultJson = json_decode($result, true); |
84 | 84 | if ($resultJson[0]['status'] == 'error') { |
85 | - throw new Exception('Mandrill: '.$resultJson[0]['message']); |
|
85 | + throw new Exception('Mandrill: ' . $resultJson[0]['message']); |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 | } |