rector: arrrrr

This commit is contained in:
Andras Bacsai
2025-01-07 14:52:08 +01:00
parent c702ebff6d
commit 16c0cd10d8
349 changed files with 4204 additions and 3712 deletions

View File

@@ -4,6 +4,7 @@ namespace App\Livewire\Storage;
use App\Models\S3Storage;
use Livewire\Component;
use Throwable;
class Form extends Component
{
@@ -37,9 +38,11 @@ class Form extends Component
$this->storage->testConnection(shouldSave: true);
return $this->dispatch('success', 'Connection is working.', 'Tested with "ListObjectsV2" action.');
} catch (\Throwable $e) {
} catch (Throwable $e) {
$this->dispatch('error', 'Failed to create storage.', $e->getMessage());
}
return null;
}
public function delete()
@@ -48,7 +51,7 @@ class Form extends Component
$this->storage->delete();
return redirect()->route('storage.index');
} catch (\Throwable $e) {
} catch (Throwable $e) {
return handleError($e, $this);
}
}
@@ -58,8 +61,10 @@ class Form extends Component
$this->validate();
try {
$this->test_s3_connection();
} catch (\Throwable $e) {
} catch (Throwable $e) {
return handleError($e, $this);
}
return null;
}
}