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

@@ -4,7 +4,6 @@ namespace App\Livewire\Security\PrivateKey;
use App\Models\PrivateKey;
use Livewire\Component;
use Throwable;
class Create extends Component
{
@@ -59,7 +58,7 @@ class Create extends Component
]);
return $this->redirectAfterCreation($privateKey);
} catch (Throwable $e) {
} catch (\Throwable $e) {
return handleError($e, $this);
}
}

View File

@@ -3,9 +3,7 @@
namespace App\Livewire\Security\PrivateKey;
use App\Models\PrivateKey;
use Exception;
use Livewire\Component;
use Throwable;
class Show extends Component
{
@@ -30,7 +28,7 @@ class Show extends Component
{
try {
$this->private_key = PrivateKey::ownedByCurrentTeam(['name', 'description', 'private_key', 'is_git_related'])->whereUuid(request()->private_key_uuid)->firstOrFail();
} catch (Throwable) {
} catch (\Throwable) {
abort(404);
}
}
@@ -47,16 +45,14 @@ class Show extends Component
{
try {
$this->private_key->safeDelete();
currentTeam()->privateKeys = PrivateKey::query()->where('team_id', currentTeam()->id)->get();
currentTeam()->privateKeys = PrivateKey::where('team_id', currentTeam()->id)->get();
return redirect()->route('security.private-key.index');
} catch (Exception $e) {
} catch (\Exception $e) {
$this->dispatch('error', $e->getMessage());
} catch (Throwable $e) {
} catch (\Throwable $e) {
return handleError($e, $this);
}
return null;
}
public function changePrivateKey()
@@ -67,10 +63,8 @@ class Show extends Component
]);
refresh_server_connection($this->private_key);
$this->dispatch('success', 'Private key updated.');
} catch (Throwable $e) {
} catch (\Throwable $e) {
return handleError($e, $this);
}
return null;
}
}