Merge pull request #3847 from lucasmichot/useless-variable-assignments
Remove some useless variable assignments
This commit is contained in:
@@ -84,6 +84,9 @@ 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->delete_unused_volumes = $server->settings->delete_unused_volumes;
|
||||||
|
$this->server->settings->delete_unused_networks = $server->settings->delete_unused_networks;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function checkSyncStatus()
|
public function checkSyncStatus()
|
||||||
|
|||||||
@@ -1478,11 +1478,9 @@ class Application extends BaseModel
|
|||||||
|
|
||||||
return $config;
|
return $config;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setConfig($config)
|
public function setConfig($config)
|
||||||
{
|
{
|
||||||
|
|
||||||
$config = $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();
|
||||||
|
|||||||
Reference in New Issue
Block a user