Completed
Push — feature/supportCorrectVersions ( 11c1fb )
by Stephen
07:52
created
src/MailTracking.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     protected function seeEmailBcc($bcc, Swift_Message $message = null)
112 112
     {
113 113
         $this->assertArrayHasKey($bcc, (array)$this->getEmail($message)
114
-                                                   ->getBcc(), "The last email sent was not bcc'ed to $bcc.");
114
+                                                    ->getBcc(), "The last email sent was not bcc'ed to $bcc.");
115 115
 
116 116
         return $this;
117 117
     }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     protected function seeEmailCc($cc, Swift_Message $message = null)
128 128
     {
129 129
         $this->assertArrayHasKey($cc, (array)$this->getEmail($message)
130
-                                                  ->getCc(), "The last email sent was not cc'ed to $cc.");
130
+                                                    ->getCc(), "The last email sent was not cc'ed to $cc.");
131 131
 
132 132
         return $this;
133 133
     }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     protected function seeEmailContains($excerpt, Swift_Message $message = null)
144 144
     {
145 145
         $this->assertContains($excerpt, $this->getEmail($message)
146
-                                             ->getBody(), "The last email sent did not contain the provided body.");
146
+                                                ->getBody(), "The last email sent did not contain the provided body.");
147 147
 
148 148
         return $this;
149 149
     }
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     {
212 212
         // TODO: Allow from to be an array to check email & name
213 213
         $this->assertArrayHasKey($sender, (array)$this->getEmail($message)
214
-                                                      ->getFrom(), "The last email sent was not sent from $sender.");
214
+                                                        ->getFrom(), "The last email sent was not sent from $sender.");
215 215
 
216 216
         return $this;
217 217
     }
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
     protected function seeEmailSubjectContains($excerpt, Swift_Message $message = null)
308 308
     {
309 309
         $this->assertContains($excerpt, $this->getEmail($message)
310
-                                             ->getSubject(),
310
+                                                ->getSubject(),
311 311
             "The last email sent did not contain the provided subject.");
312 312
 
313 313
         return $this;
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
     protected function seeEmailSubjectEquals($subject, Swift_Message $message = null)
342 342
     {
343 343
         $this->assertEquals($subject, $this->getEmail($message)
344
-                                           ->getSubject(),
344
+                                            ->getSubject(),
345 345
             "The last email sent did not contain a subject of $subject.");
346 346
 
347 347
         return $this;
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
     protected function seeEmailTo($recipient, Swift_Message $message = null)
359 359
     {
360 360
         $this->assertArrayHasKey($recipient, (array)$this->getEmail($message)
361
-                                                         ->getTo(), "The last email sent was not sent to $recipient.");
361
+                                                            ->getTo(), "The last email sent was not sent to $recipient.");
362 362
 
363 363
         return $this;
364 364
     }
Please login to merge, or discard this 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.1, 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.