From 901ce26ea7b4e055879829bb3efb280a5766ecd3 Mon Sep 17 00:00:00 2001 From: nasrulhazim Date: Wed, 27 Nov 2024 01:15:25 +0000 Subject: [PATCH] Fix styling --- src/Commands/MailHistoryTestCommand.php | 4 ++-- src/Exceptions/MailHistoryException.php | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Commands/MailHistoryTestCommand.php b/src/Commands/MailHistoryTestCommand.php index 78034ae..17bbb1c 100644 --- a/src/Commands/MailHistoryTestCommand.php +++ b/src/Commands/MailHistoryTestCommand.php @@ -39,7 +39,7 @@ public function handle(): int private function sendMail() { - $email = new WelcomeMail(); + $email = new WelcomeMail; if ($this->option('queue')) { Mail::to($this->argument('email')) @@ -59,7 +59,7 @@ private function sendNotification() $user = config('mailhistory.user-model')::where('email', $email)->firstOrFail(); - $notification = new WelcomeNotification(); + $notification = new WelcomeNotification; $user->notify( $this->option('queue') ? $notification->onQueue($this->option('queue')) : $notification diff --git a/src/Exceptions/MailHistoryException.php b/src/Exceptions/MailHistoryException.php index f428c12..1b33500 100644 --- a/src/Exceptions/MailHistoryException.php +++ b/src/Exceptions/MailHistoryException.php @@ -4,6 +4,4 @@ use Exception; -class MailHistoryException extends Exception -{ -} +class MailHistoryException extends Exception {}