From 4320b82f848d63d41df95860ed3bf595202873a9 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 10 Dec 2019 07:57:06 -0600 Subject: [PATCH] formatting --- src/Illuminate/Mail/TransportManager.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Illuminate/Mail/TransportManager.php b/src/Illuminate/Mail/TransportManager.php index 5948b6c2c2bf..e711bc5d7e63 100644 --- a/src/Illuminate/Mail/TransportManager.php +++ b/src/Illuminate/Mail/TransportManager.php @@ -149,13 +149,11 @@ protected function createMailgunDriver() */ protected function createPostmarkDriver() { - $transport = new PostmarkTransport( + return tap(new PostmarkTransport( $this->config->get('services.postmark.token') - ); - - $transport->registerPlugin(new ThrowExceptionOnFailurePlugin()); - - return $transport; + ), function ($transport) { + $transport->registerPlugin(new ThrowExceptionOnFailurePlugin()); + }); } /**