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,9 +4,7 @@ namespace App\Livewire\SharedVariables\Environment;
use App\Models\Application;
use App\Models\Project;
use Exception;
use Livewire\Component;
use Throwable;
class Show extends Component
{
@@ -25,7 +23,7 @@ class Show extends Component
try {
$found = $this->environment->environment_variables()->where('key', $data['key'])->first();
if ($found) {
throw new Exception('Variable already exists.');
throw new \Exception('Variable already exists.');
}
$this->environment->environment_variables()->create([
'key' => $data['key'],
@@ -36,11 +34,9 @@ class Show extends Component
'team_id' => currentTeam()->id,
]);
$this->environment->refresh();
} catch (Throwable $e) {
} catch (\Throwable $e) {
return handleError($e, $this);
}
return null;
}
public function mount()