Lint PHP code psr-12, add GH action
This commit is contained in:
@@ -6,7 +6,6 @@ use App\Models\Forms\Form;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
use Illuminate\Notifications\Notification;
|
||||
use Illuminate\Support\Str;
|
||||
use Spatie\WebhookServer\Events\WebhookCallFailedEvent;
|
||||
|
||||
class FailedWebhookNotification extends Notification
|
||||
@@ -14,6 +13,7 @@ class FailedWebhookNotification extends Notification
|
||||
use Queueable;
|
||||
|
||||
public Form $form;
|
||||
|
||||
public string $provider;
|
||||
|
||||
/**
|
||||
@@ -30,7 +30,7 @@ class FailedWebhookNotification extends Notification
|
||||
/**
|
||||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @param mixed $notifiable
|
||||
* @return array
|
||||
*/
|
||||
public function via($notifiable)
|
||||
@@ -41,13 +41,13 @@ class FailedWebhookNotification extends Notification
|
||||
/**
|
||||
* Get the mail representation of the notification.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @param mixed $notifiable
|
||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||
*/
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
return (new MailMessage)
|
||||
->subject("Notification issue with your NotionForm: '" . $this->form->title . "'")
|
||||
return (new MailMessage())
|
||||
->subject("Notification issue with your NotionForm: '".$this->form->title."'")
|
||||
->markdown('mail.form.webhook-error', [
|
||||
'provider' => $this->provider,
|
||||
'error' => $this->event->errorMessage,
|
||||
|
||||
Reference in New Issue
Block a user