Passed
Pull Request — develop (#62)
by Stephen
02:46
created
src/MailTracking.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -49,13 +49,13 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function setUpMailTracking()
51 51
     {
52
-        $register_plugin = function () {
52
+        $register_plugin = function() {
53 53
             $this->resolveMailer()
54 54
                  ->getSwiftMailer()
55 55
                  ->registerPlugin(new MailRecorder($this));
56 56
         };
57 57
 
58
-        $this->afterApplicationCreated(function () use ($register_plugin) {
58
+        $this->afterApplicationCreated(function() use ($register_plugin) {
59 59
             $register_plugin();
60 60
         });
61 61
     }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     protected function seeEmailBcc($bcc, Swift_Message $message = null)
120 120
     {
121
-        $this->assertArrayHasKey($bcc, (array)$this->getEmail($message)
121
+        $this->assertArrayHasKey($bcc, (array) $this->getEmail($message)
122 122
                                                    ->getBcc(), "The last email sent was not bcc'ed to $bcc.");
123 123
 
124 124
         return $this;
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     protected function seeEmailCc($cc, Swift_Message $message = null)
136 136
     {
137
-        $this->assertArrayHasKey($cc, (array)$this->getEmail($message)
137
+        $this->assertArrayHasKey($cc, (array) $this->getEmail($message)
138 138
                                                   ->getCc(), "The last email sent was not cc'ed to $cc.");
139 139
 
140 140
         return $this;
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
     protected function seeEmailFrom($sender, Swift_Message $message = null)
218 218
     {
219 219
         // TODO: Allow from to be an array to check email & name
220
-        $this->assertArrayHasKey($sender, (array)$this->getEmail($message)
220
+        $this->assertArrayHasKey($sender, (array) $this->getEmail($message)
221 221
                                                       ->getFrom(), "The last email sent was not sent from $sender.");
222 222
 
223 223
         return $this;
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
      */
254 254
     protected function seeEmailReplyTo($reply_to, Swift_Message $message = null)
255 255
     {
256
-        $this->assertArrayHasKey($reply_to, (array)$this->getEmail($message)
256
+        $this->assertArrayHasKey($reply_to, (array) $this->getEmail($message)
257 257
                                                         ->getReplyTo(),
258 258
                                  "The last email sent was not set to reply to $reply_to.");
259 259
 
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
      */
362 362
     protected function seeEmailTo($recipient, Swift_Message $message = null)
363 363
     {
364
-        $this->assertArrayHasKey($recipient, (array)$this->getEmail($message)
364
+        $this->assertArrayHasKey($recipient, (array) $this->getEmail($message)
365 365
                                                          ->getTo(), "The last email sent was not sent to $recipient.");
366 366
 
367 367
         return $this;
Please login to merge, or discard this patch.