Completed
Push — master ( 5b3e5d...e14b0e )
by Joao
02:21
created
src/Wrapper/MandrillApiWrapper.php 1 patch
Spacing   +4 added lines, -4 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
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
     }
Please login to merge, or discard this patch.