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 @@ class Add extends Component
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 @@ class All extends Component
{ {
$this->resource->refresh(); $this->resource->refresh();
} }
} }

View File

@@ -53,6 +53,7 @@ class EmailChannel
if (blank($type)) { if (blank($type)) {
throw new Exception('No email settings found.'); throw new Exception('No email settings found.');
} }
return; return;
} }