From 463021a9f3d24844cca9db6486973b2ba224ac7b Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 6 Jun 2024 11:09:27 +0200 Subject: [PATCH] refactor: Remove unused variables and improve code readability --- app/Livewire/Project/Database/Backup/Index.php | 2 -- app/Livewire/Project/Database/CreateScheduledBackup.php | 1 + resources/views/livewire/project/application/general.blade.php | 1 - .../views/livewire/project/database/backup/index.blade.php | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Livewire/Project/Database/Backup/Index.php b/app/Livewire/Project/Database/Backup/Index.php index 5a14c313b..04ba642ec 100644 --- a/app/Livewire/Project/Database/Backup/Index.php +++ b/app/Livewire/Project/Database/Backup/Index.php @@ -7,7 +7,6 @@ class Index extends Component { public $database; - public $s3s; public function mount() { $project = currentTeam()->load(['projects'])->projects->where('uuid', request()->route('project_uuid'))->first(); @@ -36,7 +35,6 @@ public function mount() ]); } $this->database = $database; - $this->s3s = currentTeam()->s3s; } public function render() { diff --git a/app/Livewire/Project/Database/CreateScheduledBackup.php b/app/Livewire/Project/Database/CreateScheduledBackup.php index 2b9aa987b..72ecca7b6 100644 --- a/app/Livewire/Project/Database/CreateScheduledBackup.php +++ b/app/Livewire/Project/Database/CreateScheduledBackup.php @@ -25,6 +25,7 @@ class CreateScheduledBackup extends Component ]; public function mount() { + $this->s3s = currentTeam()->s3s; if ($this->s3s->count() > 0) { $this->s3_storage_id = $this->s3s->first()->id; } diff --git a/resources/views/livewire/project/application/general.blade.php b/resources/views/livewire/project/application/general.blade.php index df7ba526c..c6c5bbef3 100644 --- a/resources/views/livewire/project/application/general.blade.php +++ b/resources/views/livewire/project/application/general.blade.php @@ -38,7 +38,6 @@ @endif @if ($application->build_pack === 'dockercompose') - @if ( !is_null($parsedServices) && count($parsedServices) > 0 && diff --git a/resources/views/livewire/project/database/backup/index.blade.php b/resources/views/livewire/project/database/backup/index.blade.php index 7879689a6..18622dcd8 100644 --- a/resources/views/livewire/project/database/backup/index.blade.php +++ b/resources/views/livewire/project/database/backup/index.blade.php @@ -6,7 +6,7 @@

Scheduled Backups

- +