Passed
Pull Request — develop (#56)
by Stephen
02:09
created
src/MailTracking.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $register_plugin = function () {
53 53
             $this->resolveMailer()
54
-                 ->getSwiftMailer()
55
-                 ->registerPlugin(new MailRecorder($this));
54
+                    ->getSwiftMailer()
55
+                    ->registerPlugin(new MailRecorder($this));
56 56
         };
57 57
 
58 58
         $this->afterApplicationCreated(function () use ($register_plugin) {
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         $this->assertStringContainsString(
162 162
             $excerpt,
163 163
             $this->getEmail($message)
164
-                 ->getBody(),
164
+                    ->getBody(),
165 165
             "The last email sent did not contain the provided body."
166 166
         );
167 167
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         $this->assertEquals(
183 183
             $content_type,
184 184
             $this->getEmail($message)
185
-                 ->getContentType(),
185
+                    ->getContentType(),
186 186
             "The last email sent did not contain the provided body."
187 187
         );
188 188
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         $this->assertStringNotContainsString(
203 203
             $excerpt,
204 204
             $this->getEmail($message)
205
-                 ->getBody(),
205
+                    ->getBody(),
206 206
             "The last email sent contained the provided text in its body."
207 207
         );
208 208
 
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         $this->assertEquals(
223 223
             $body,
224 224
             $this->getEmail($message)
225
-                 ->getBody(),
225
+                    ->getBody(),
226 226
             "The last email sent did not match the given email."
227 227
         );
228 228
 
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
         $this->assertStringContainsString(
350 350
             $excerpt,
351 351
             $this->getEmail($message)
352
-                 ->getSubject(),
352
+                    ->getSubject(),
353 353
             "The last email sent did not contain the provided subject."
354 354
         );
355 355
 
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
         $this->assertStringNotContainsString(
370 370
             $excerpt,
371 371
             $this->getEmail($message)
372
-                 ->getSubject(),
372
+                    ->getSubject(),
373 373
             "The last email sent contained the provided text in its subject."
374 374
         );
375 375
 
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
         $this->assertEquals(
390 390
             $subject,
391 391
             $this->getEmail($message)
392
-                 ->getSubject(),
392
+                    ->getSubject(),
393 393
             "The last email sent did not contain a subject of $subject."
394 394
         );
395 395
 
Please login to merge, or discard this 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
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     {
121 121
         $this->assertArrayHasKey(
122 122
             $bcc,
123
-            (array)$this->getEmail($message)
123
+            (array) $this->getEmail($message)
124 124
                         ->getBcc(),
125 125
             "The last email sent was not bcc'ed to $bcc."
126 126
         );
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     {
141 141
         $this->assertArrayHasKey(
142 142
             $cc,
143
-            (array)$this->getEmail($message)
143
+            (array) $this->getEmail($message)
144 144
                         ->getCc(),
145 145
             "The last email sent was not cc'ed to $cc."
146 146
         );
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
         // TODO: Allow from to be an array to check email & name
243 243
         $this->assertArrayHasKey(
244 244
             $sender,
245
-            (array)$this->getEmail($message)
245
+            (array) $this->getEmail($message)
246 246
                         ->getFrom(),
247 247
             "The last email sent was not sent from $sender."
248 248
         );
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
     {
286 286
         $this->assertArrayHasKey(
287 287
             $reply_to,
288
-            (array)$this->getEmail($message)
288
+            (array) $this->getEmail($message)
289 289
                         ->getReplyTo(),
290 290
             "The last email sent was not set to reply to $reply_to."
291 291
         );
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
     {
409 409
         $this->assertArrayHasKey(
410 410
             $recipient,
411
-            (array)$this->getEmail($message)
411
+            (array) $this->getEmail($message)
412 412
                         ->getTo(),
413 413
             "The last email sent was not sent to $recipient."
414 414
         );
Please login to merge, or discard this patch.