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

@@ -18,7 +18,7 @@ class DeleteProject extends Component
public function mount()
{
$this->parameters = get_route_parameters();
$this->projectName = Project::query()->findOrFail($this->project_id)->name;
$this->projectName = Project::findOrFail($this->project_id)->name;
}
public function delete()
@@ -26,7 +26,7 @@ class DeleteProject extends Component
$this->validate([
'project_id' => 'required|int',
]);
$project = Project::query()->findOrFail($this->project_id);
$project = Project::findOrFail($this->project_id);
if ($project->isEmpty()) {
$project->delete();