@@ -48,7 +48,7 @@ discard block |
||
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 |
||
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,12 +110,12 @@ discard block |
||
110 | 110 | */ |
111 | 111 | protected function seeEmailBcc($bcc_list, Swift_Message $message = null) |
112 | 112 | { |
113 | - if (! is_array($bcc_list)) { |
|
113 | + if (!is_array($bcc_list)) { |
|
114 | 114 | $bcc_list = [$bcc_list]; |
115 | 115 | } |
116 | 116 | |
117 | - $this->arrayHasKey((array)$this->getEmail($message) |
|
118 | - ->getBcc(), $bcc_list, 'The last email sent was not bcc\'ed to any of the following addresses: ' . implode(', ', $bcc_list) . '.'); |
|
117 | + $this->arrayHasKey((array) $this->getEmail($message) |
|
118 | + ->getBcc(), $bcc_list, 'The last email sent was not bcc\'ed to any of the following addresses: '.implode(', ', $bcc_list).'.'); |
|
119 | 119 | |
120 | 120 | return $this; |
121 | 121 | } |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | */ |
131 | 131 | protected function seeEmailCc($cc, Swift_Message $message = null) |
132 | 132 | { |
133 | - $this->assertArrayHasKey($cc, (array)$this->getEmail($message) |
|
133 | + $this->assertArrayHasKey($cc, (array) $this->getEmail($message) |
|
134 | 134 | ->getCc(), "The last email sent was not cc'ed to $cc."); |
135 | 135 | |
136 | 136 | return $this; |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | protected function seeEmailFrom($sender, Swift_Message $message = null) |
215 | 215 | { |
216 | 216 | // TODO: Allow from to be an array to check email & name |
217 | - $this->assertArrayHasKey($sender, (array)$this->getEmail($message) |
|
217 | + $this->assertArrayHasKey($sender, (array) $this->getEmail($message) |
|
218 | 218 | ->getFrom(), "The last email sent was not sent from $sender."); |
219 | 219 | |
220 | 220 | return $this; |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | */ |
251 | 251 | protected function seeEmailReplyTo($reply_to, Swift_Message $message = null) |
252 | 252 | { |
253 | - $this->assertArrayHasKey($reply_to, (array)$this->getEmail($message) |
|
253 | + $this->assertArrayHasKey($reply_to, (array) $this->getEmail($message) |
|
254 | 254 | ->getReplyTo(), |
255 | 255 | "The last email sent was not set to reply to $reply_to."); |
256 | 256 | |
@@ -361,7 +361,7 @@ discard block |
||
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; |