Revert "rector: arrrrr"

This reverts commit 16c0cd10d8.
This commit is contained in:
Andras Bacsai
2025-01-07 15:31:43 +01:00
parent da07b4fdcf
commit 1fe4dd722b
349 changed files with 3689 additions and 4184 deletions

View File

@@ -6,7 +6,6 @@ use App\Jobs\ScheduledTaskJob;
use App\Models\Application;
use App\Models\ScheduledTask;
use App\Models\Service;
use Exception;
use Livewire\Attributes\Locked;
use Livewire\Attributes\Validate;
use Livewire\Component;
@@ -69,11 +68,9 @@ class Show extends Component
$this->task = $this->resource->scheduled_tasks()->where('uuid', $task_uuid)->firstOrFail();
$this->syncData();
} catch (Exception $e) {
} catch (\Exception $e) {
return handleError($e);
}
return null;
}
public function syncData(bool $toModel = false)
@@ -101,11 +98,9 @@ class Show extends Component
$this->syncData(true);
$this->dispatch('success', 'Scheduled task updated.');
$this->refreshTasks();
} catch (Exception $e) {
} catch (\Exception $e) {
return handleError($e);
}
return null;
}
public function submit()
@@ -113,22 +108,18 @@ class Show extends Component
try {
$this->syncData(true);
$this->dispatch('success', 'Scheduled task updated.');
} catch (Exception $e) {
} catch (\Exception $e) {
return handleError($e);
}
return null;
}
public function refreshTasks()
{
try {
$this->task->refresh();
} catch (Exception $e) {
} catch (\Exception $e) {
return handleError($e);
}
return null;
}
public function delete()
@@ -138,10 +129,10 @@ class Show extends Component
if ($this->type === 'application') {
return redirect()->route('project.application.configuration', $this->parameters, $this->task->name);
} else {
return redirect()->route('project.service.configuration', $this->parameters, $this->task->name);
}
return redirect()->route('project.service.configuration', $this->parameters, $this->task->name);
} catch (Exception $e) {
} catch (\Exception $e) {
return handleError($e);
}
}
@@ -151,10 +142,8 @@ class Show extends Component
try {
ScheduledTaskJob::dispatch($this->task);
$this->dispatch('success', 'Scheduled task executed.');
} catch (Exception $e) {
} catch (\Exception $e) {
return handleError($e);
}
return null;
}
}