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

@@ -3,6 +3,7 @@
namespace App\Livewire\Terminal;
use App\Models\Server;
use Exception;
use Livewire\Attributes\On;
use Livewire\Component;
@@ -28,11 +29,13 @@ 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()
@@ -43,8 +46,8 @@ class Index extends Component
}
return $server->loadAllContainers()->map(function ($container) use ($server) {
$state = data_get_str($container, 'State')->lower();
if ($state->contains('running')) {
$stringable = data_get_str($container, 'State')->lower();
if ($stringable->contains('running')) {
return [
'name' => data_get($container, 'Names'),
'connection_name' => data_get($container, 'Names'),