refactor(ScheduledTask): clean up code formatting and remove unused import

This commit is contained in:
Andras Bacsai 2025-03-14 16:11:41 +01:00
parent 282bb5c4cd
commit 798aab6955
3 changed files with 2 additions and 3 deletions

View file

@ -75,7 +75,7 @@ public function submit()
public function saveScheduledTask() public function saveScheduledTask()
{ {
try { try {
$task = new ScheduledTask(); $task = new ScheduledTask;
$task->name = $this->name; $task->name = $this->name;
$task->command = $this->command; $task->command = $this->command;
$task->frequency = $this->frequency; $task->frequency = $this->frequency;

View file

@ -2,7 +2,6 @@
namespace App\Livewire\Project\Shared\ScheduledTask; namespace App\Livewire\Project\Shared\ScheduledTask;
use App\Models\ScheduledTask;
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
use Livewire\Attributes\Locked; use Livewire\Attributes\Locked;
use Livewire\Attributes\On; use Livewire\Attributes\On;
@ -42,5 +41,4 @@ public function refreshTasks()
{ {
$this->resource->refresh(); $this->resource->refresh();
} }
} }

View file

@ -53,6 +53,7 @@ private function bootConfigs($notifiable): void
if (blank($type)) { if (blank($type)) {
throw new Exception('No email settings found.'); throw new Exception('No email settings found.');
} }
return; return;
} }