Skip to content

Commit

Permalink
Merge branch 'laravel-11' of github.com:vormkracht10/laravel-mails in…
Browse files Browse the repository at this point in the history
…to laravel-11
  • Loading branch information
Baspa committed Jun 18, 2024
2 parents ab780d1 + e7e4936 commit faf8fa6
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/Commands/CheckBounceRateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class CheckBounceRateCommand extends Command
protected $signature = 'mails:bounce-rate';

protected $description = 'Check if the bounce rate is higher than the configured limit '.
'and send a notification if it is.';
'and send a notification if it is.';

public function handle(): int
{
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/MailProviderContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

interface MailProviderContract
{
public function driver(string $driver = null);
public function driver(?string $driver = null);
}
2 changes: 1 addition & 1 deletion src/Controllers/PostmarkWebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __invoke(Request $request): Response
$payload = $request->all(),
);

if(is_null($uuid)) {
if (is_null($uuid)) {
return response(status: 202);
}

Expand Down
3 changes: 1 addition & 2 deletions src/Events/MailBounced.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ class MailBounced
*/
public function __construct(
public MailEvent $mailEvent
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Events/MailClicked.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ class MailClicked
*/
public function __construct(
public MailEvent $mailEvent
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Events/MailComplained.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ class MailComplained
*/
public function __construct(
public MailEvent $mailEvent
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Events/MailDelivered.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ class MailDelivered
*/
public function __construct(
public MailEvent $mailEvent
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Events/MailEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ class MailEvent
public function __construct(
public string $provider,
public $payload
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Events/MailEventLogged.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ class MailEventLogged
*/
public function __construct(
public MailEvent $mailEvent
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Events/MailOpened.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ class MailOpened
*/
public function __construct(
public MailEvent $mailEvent
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Events/MailResent.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ class MailResent
public function __construct(
public string $provider,
public $payload
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Events/WebhookBounced.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ class WebhookBounced
public function __construct(
public Provider $provider,
public $payload
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Events/WebhookClicked.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ class WebhookClicked
public function __construct(
public Provider $provider,
public $payload
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Events/WebhookComplained.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ class WebhookComplained
public function __construct(
public Provider $provider,
public $payload
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Events/WebhookDelivered.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ class WebhookDelivered
public function __construct(
public Provider $provider,
public $payload,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Events/WebhookEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public function __construct(
public array $payload = [],
protected ?string $mailUuid = null,
public $timestamp = null,
) {
}
) {}

public function mail(): ?Mail
{
Expand Down
3 changes: 1 addition & 2 deletions src/Events/WebhookOpened.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ class WebhookOpened
public function __construct(
public Provider $provider,
public $payload
) {
}
) {}
}
2 changes: 1 addition & 1 deletion src/Listeners/Concerns/SendsNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function send(Notification $notification, array $channels): void
return;
}

foreach($accounts as $route) {
foreach ($accounts as $route) {
Notifications::route($channel, $route)->notify(
$notification->on($channel),
);
Expand Down

0 comments on commit faf8fa6

Please sign in to comment.