Inline many variables.

This commit is contained in:
Lucas Michot committed 2024-10-31 18:20:11 +01:00
1 parent aa7fa16c74
commit 1ec224fde1
20 files changed
+34 -79

No files matched your search

+2 -3
View File
@@ -16,11 +16,10 @@ function collectProxyDockerNetworksByServer(Server $server)
return collect();
}
$networks = instant_remote_process(['docker inspect --format="{{json .NetworkSettings.Networks }}" coolify-proxy'], $server, false);
$networks = collect($networks)->map(function ($network) {
return collect($networks)->map(function ($network) {
return collect(json_decode($network))->keys();
})->flatten()->unique();
return $networks;
}
function collectDockerNetworksByServer(Server $server)
{