Completed
Push — 5.x ( bbc72c...4f7303 )
by Lars
03:29
created
lib/classes/Swift/Transport/MailTransport.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     public function send(Swift_Mime_Message $message, &$failedRecipients = null)
132 132
     {
133
-        $failedRecipients = (array)$failedRecipients;
133
+        $failedRecipients = (array) $failedRecipients;
134 134
 
135 135
         $evt = $this->_eventDispatcher->createSendEvent($this, $message);
136 136
         if ($evt) {
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
         }
143 143
 
144 144
         $count = (
145
-            count((array)$message->getTo())
146
-            + count((array)$message->getCc())
147
-            + count((array)$message->getBcc())
145
+            count((array) $message->getTo())
146
+            + count((array) $message->getCc())
147
+            + count((array) $message->getBcc())
148 148
         );
149 149
 
150 150
         /*
@@ -177,10 +177,10 @@  discard block
 block discarded – undo
177 177
 
178 178
         // Separate headers from body
179 179
         if (false !== $endHeaders = strpos($messageStr, "\r\n\r\n")) {
180
-            $headers = substr($messageStr, 0, $endHeaders) . "\r\n"; // Keep last EOL
180
+            $headers = substr($messageStr, 0, $endHeaders)."\r\n"; // Keep last EOL
181 181
             $body = substr($messageStr, $endHeaders + 4);
182 182
         } else {
183
-            $headers = $messageStr . "\r\n";
183
+            $headers = $messageStr."\r\n";
184 184
             $body = '';
185 185
         }
186 186
 
@@ -207,9 +207,9 @@  discard block
 block discarded – undo
207 207
         } else {
208 208
             $failedRecipients = array_merge(
209 209
                 $failedRecipients,
210
-                array_keys((array)$message->getTo()),
211
-                array_keys((array)$message->getCc()),
212
-                array_keys((array)$message->getBcc())
210
+                array_keys((array) $message->getTo()),
211
+                array_keys((array) $message->getCc()),
212
+                array_keys((array) $message->getBcc())
213 213
             );
214 214
 
215 215
             if ($evt) {
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
             $count = 0;
222 222
         }
223 223
 
224
-        $message->generateId();  // Make sure a new Message ID is used
224
+        $message->generateId(); // Make sure a new Message ID is used
225 225
 
226 226
         return $count;
227 227
     }
Please login to merge, or discard this patch.