From 69d3d0463cf6bd114d2beecd8480556efb168678 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 22 Dec 2016 07:33:35 -0600 Subject: [PATCH] formatting --- src/Illuminate/Mail/Transport/ArrayTransport.php | 11 ++++++++--- src/Illuminate/Mail/TransportManager.php | 4 +++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/Illuminate/Mail/Transport/ArrayTransport.php b/src/Illuminate/Mail/Transport/ArrayTransport.php index 5c709db117c4..f03c2d40e2cf 100644 --- a/src/Illuminate/Mail/Transport/ArrayTransport.php +++ b/src/Illuminate/Mail/Transport/ArrayTransport.php @@ -37,16 +37,21 @@ public function send(Swift_Mime_Message $message, &$failedRecipients = null) } /** - * Return the collection of messages. + * Retrieve the collection of messages. * * @return \Illuminate\Support\Collection */ - public function getMessages() + public function messages() { return $this->messages; } - public function clearMessages() + /** + * Clear all of the messages from the local collection. + * + * @return void + */ + public function flush() { return $this->messages = new Collection; } diff --git a/src/Illuminate/Mail/TransportManager.php b/src/Illuminate/Mail/TransportManager.php index 01f008a11f6f..ca485970f103 100644 --- a/src/Illuminate/Mail/TransportManager.php +++ b/src/Illuminate/Mail/TransportManager.php @@ -153,10 +153,12 @@ protected function createLogDriver() /** * Create an instance of the Array Swift Transport Driver. + * + * @return \Illuminate\Mail\Transport\ArrayTransport */ protected function createArrayDriver() { - return new ArrayTransport(); + return new ArrayTransport; } /**