testing php storm code cleanup and styling

This commit is contained in:
Andras Bacsai committed 2023-08-08 11:51:36 +02:00
1 parent a8ee779b31
commit f2228cec7b
368 files changed
+23834 -2623

No files matched your search

@@ -19,6 +19,7 @@ class DiscordSettings extends Component
protected $validationAttributes = [
'model.discord_webhook_url' => 'Discord Webhook',
];
public function instantSave()
{
try {
@@ -29,6 +30,14 @@ class DiscordSettings extends Component
$this->validate();
}
}
public function submit()
{
$this->resetErrorBag();
$this->validate();
$this->saveModel();
}
public function saveModel()
{
ray($this->model);
@@ -38,15 +47,10 @@ class DiscordSettings extends Component
}
$this->emit('success', 'Settings saved.');
}
public function submit()
{
$this->resetErrorBag();
$this->validate();
$this->saveModel();
}
public function sendTestNotification()
{
$this->model->notify(new Test);
$this->emit('success', 'Test notification sent.');
}
}
}