Completed
Push — master ( 31f8bb...a02425 )
by Joao
05:56
created
src/Wrapper/MandrillApiWrapper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.