Completed
Push — master ( e14b0e...2f3639 )
by Joao
02:07
created
src/Wrapper/MailgunApiWrapper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
         $message = $mail->getFullMessageEnvelope();
25 25
 
26 26
         // Fix BCC header because PHPMailer does not send to us
27
-        foreach ((array) $envelope->getBCC() as $bccEmail) {
28
-            $message = 'Bcc: '.$bccEmail."\n".$message;
27
+        foreach ((array)$envelope->getBCC() as $bccEmail) {
28
+            $message = 'Bcc: ' . $bccEmail . "\n" . $message;
29 29
         }
30 30
 
31 31
         $domainName = $this->connection->getServer();
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             new UploadFile('message', $message, 'message.mime')
38 38
         ];
39 39
         // Add "To;"
40
-        foreach ((array) $envelope->getTo() as $toEmail) {
40
+        foreach ((array)$envelope->getTo() as $toEmail) {
41 41
             $upload[] = new UploadFile('to', $toEmail);
42 42
         }
43 43
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $resultJson = json_decode($result, true);
47 47
         if (!isset($resultJson['id'])) {
48
-            throw new Exception('Mailgun: '.$resultJson['message']);
48
+            throw new Exception('Mailgun: ' . $resultJson['message']);
49 49
         }
50 50
 
51 51
         return true;
Please login to merge, or discard this patch.