Remove some useless variable assignments.
This commit is contained in:
@@ -73,8 +73,6 @@ class Index extends Component
|
|||||||
}
|
}
|
||||||
$this->privateKeyName = generate_random_name();
|
$this->privateKeyName = generate_random_name();
|
||||||
$this->remoteServerName = generate_random_name();
|
$this->remoteServerName = generate_random_name();
|
||||||
$this->remoteServerPort = $this->remoteServerPort;
|
|
||||||
$this->remoteServerUser = $this->remoteServerUser;
|
|
||||||
if (isDev()) {
|
if (isDev()) {
|
||||||
$this->privateKey = '-----BEGIN OPENSSH PRIVATE KEY-----
|
$this->privateKey = '-----BEGIN OPENSSH PRIVATE KEY-----
|
||||||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
|
||||||
|
|||||||
@@ -95,8 +95,6 @@ class Form extends Component
|
|||||||
$this->server = $server;
|
$this->server = $server;
|
||||||
$this->timezones = collect(timezone_identifiers_list())->sort()->values()->toArray();
|
$this->timezones = collect(timezone_identifiers_list())->sort()->values()->toArray();
|
||||||
$this->wildcard_domain = $this->server->settings->wildcard_domain;
|
$this->wildcard_domain = $this->server->settings->wildcard_domain;
|
||||||
$this->server->settings->docker_cleanup_threshold = $this->server->settings->docker_cleanup_threshold;
|
|
||||||
$this->server->settings->docker_cleanup_frequency = $this->server->settings->docker_cleanup_frequency;
|
|
||||||
$this->server->settings->delete_unused_volumes = $server->settings->delete_unused_volumes;
|
$this->server->settings->delete_unused_volumes = $server->settings->delete_unused_volumes;
|
||||||
$this->server->settings->delete_unused_networks = $server->settings->delete_unused_networks;
|
$this->server->settings->delete_unused_networks = $server->settings->delete_unused_networks;
|
||||||
}
|
}
|
||||||
@@ -236,11 +234,6 @@ class Form extends Component
|
|||||||
}
|
}
|
||||||
refresh_server_connection($this->server->privateKey);
|
refresh_server_connection($this->server->privateKey);
|
||||||
$this->server->settings->wildcard_domain = $this->wildcard_domain;
|
$this->server->settings->wildcard_domain = $this->wildcard_domain;
|
||||||
if ($this->server->settings->force_docker_cleanup) {
|
|
||||||
$this->server->settings->docker_cleanup_frequency = $this->server->settings->docker_cleanup_frequency;
|
|
||||||
} else {
|
|
||||||
$this->server->settings->docker_cleanup_threshold = $this->server->settings->docker_cleanup_threshold;
|
|
||||||
}
|
|
||||||
$currentTimezone = $this->server->settings->getOriginal('server_timezone');
|
$currentTimezone = $this->server->settings->getOriginal('server_timezone');
|
||||||
$newTimezone = $this->server->settings->server_timezone;
|
$newTimezone = $this->server->settings->server_timezone;
|
||||||
if ($currentTimezone !== $newTimezone || $currentTimezone === '') {
|
if ($currentTimezone !== $newTimezone || $currentTimezone === '') {
|
||||||
|
|||||||
@@ -1459,9 +1459,9 @@ class Application extends BaseModel
|
|||||||
|
|
||||||
return $config;
|
return $config;
|
||||||
}
|
}
|
||||||
public function setConfig($config) {
|
|
||||||
|
|
||||||
$config = $config;
|
public function setConfig($config)
|
||||||
|
{
|
||||||
$validator = Validator::make(['config' => $config], [
|
$validator = Validator::make(['config' => $config], [
|
||||||
'config' => 'required|json',
|
'config' => 'required|json',
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -279,7 +279,6 @@ function fqdnLabelsForCaddy(string $network, string $uuid, Collection $domains,
|
|||||||
$labels->push("caddy_ingress_network={$network}");
|
$labels->push("caddy_ingress_network={$network}");
|
||||||
}
|
}
|
||||||
foreach ($domains as $loop => $domain) {
|
foreach ($domains as $loop => $domain) {
|
||||||
$loop = $loop;
|
|
||||||
$url = Url::fromString($domain);
|
$url = Url::fromString($domain);
|
||||||
$host = $url->getHost();
|
$host = $url->getHost();
|
||||||
$path = $url->getPath();
|
$path = $url->getPath();
|
||||||
@@ -335,6 +334,7 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_
|
|||||||
if (preg_match('/coolify\.traefik\.middlewares=(.*)/', $item, $matches)) {
|
if (preg_match('/coolify\.traefik\.middlewares=(.*)/', $item, $matches)) {
|
||||||
return explode(',', $matches[1]);
|
return explode(',', $matches[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
})->flatten()
|
})->flatten()
|
||||||
->filter()
|
->filter()
|
||||||
|
|||||||
Reference in New Issue
Block a user