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; } /**