@@ -49,13 +49,13 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | ); |