Completed
Push — master ( bbd7cf...89f23d )
by Stephen
10s
created
src/MailTracking.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function setUpMailTracking()
50 50
     {
51
-        $register_plugin = function () {
51
+        $register_plugin = function() {
52 52
             Mail::getSwiftMailer()
53 53
                 ->registerPlugin(new MailRecorder($this));
54 54
         };
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         }
62 62
 
63 63
         // For PhpUnit 6 and Laravel > 5.2, register the plugin after the app is booted
64
-        $this->afterApplicationCreated(function () use ($register_plugin) {
64
+        $this->afterApplicationCreated(function() use ($register_plugin) {
65 65
             $register_plugin();
66 66
         });
67 67
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function seeEmailBcc($bcc, Swift_Message $message = null)
112 112
     {
113
-        $this->assertArrayHasKey($bcc, (array)$this->getEmail($message)
113
+        $this->assertArrayHasKey($bcc, (array) $this->getEmail($message)
114 114
                                                    ->getBcc(), "The last email sent was not bcc'ed to $bcc.");
115 115
 
116 116
         return $this;
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     protected function seeEmailCc($cc, Swift_Message $message = null)
128 128
     {
129
-        $this->assertArrayHasKey($cc, (array)$this->getEmail($message)
129
+        $this->assertArrayHasKey($cc, (array) $this->getEmail($message)
130 130
                                                   ->getCc(), "The last email sent was not cc'ed to $cc.");
131 131
 
132 132
         return $this;
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     protected function seeEmailFrom($sender, Swift_Message $message = null)
211 211
     {
212 212
         // TODO: Allow from to be an array to check email & name
213
-        $this->assertArrayHasKey($sender, (array)$this->getEmail($message)
213
+        $this->assertArrayHasKey($sender, (array) $this->getEmail($message)
214 214
                                                       ->getFrom(), "The last email sent was not sent from $sender.");
215 215
 
216 216
         return $this;
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      */
247 247
     protected function seeEmailReplyTo($reply_to, Swift_Message $message = null)
248 248
     {
249
-        $this->assertArrayHasKey($reply_to, (array)$this->getEmail($message)
249
+        $this->assertArrayHasKey($reply_to, (array) $this->getEmail($message)
250 250
                                                         ->getReplyTo(),
251 251
                                  "The last email sent was not set to reply to $reply_to.");
252 252
 
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
      */
358 358
     protected function seeEmailTo($recipient, Swift_Message $message = null)
359 359
     {
360
-        $this->assertArrayHasKey($recipient, (array)$this->getEmail($message)
360
+        $this->assertArrayHasKey($recipient, (array) $this->getEmail($message)
361 361
                                                          ->getTo(), "The last email sent was not sent to $recipient.");
362 362
 
363 363
         return $this;
Please login to merge, or discard this patch.