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

@@ -3,7 +3,6 @@
namespace App\Livewire\Terminal;
use App\Models\Server;
use Exception;
use Livewire\Attributes\On;
use Livewire\Component;
@@ -29,13 +28,11 @@ class Index extends Component
{
try {
$this->containers = $this->getAllActiveContainers();
} catch (Exception $e) {
} catch (\Exception $e) {
return handleError($e, $this);
} finally {
$this->isLoadingContainers = false;
}
return null;
}
private function getAllActiveContainers()
@@ -46,8 +43,8 @@ class Index extends Component
}
return $server->loadAllContainers()->map(function ($container) use ($server) {
$stringable = data_get_str($container, 'State')->lower();
if ($stringable->contains('running')) {
$state = data_get_str($container, 'State')->lower();
if ($state->contains('running')) {
return [
'name' => data_get($container, 'Names'),
'connection_name' => data_get($container, 'Names'),