testing php storm code cleanup and styling

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

View File

@@ -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.');
}
}
}