Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nasrulhazim committed Nov 27, 2024
2 parents 07d0504 + 901ce26 commit c6ccb45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Commands/MailHistoryTestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand All @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptions/MailHistoryException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class MailHistoryException extends Exception
{
}
class MailHistoryException extends Exception {}

0 comments on commit c6ccb45

Please sign in to comment.