src: style sweep

This commit is contained in:
Franco Fichtner 2021-10-11 08:05:15 +02:00
parent b209212fb1
commit bb40865287
2 changed files with 2 additions and 2 deletions

View File

@ -1880,7 +1880,7 @@ function dhcpd_dhcrelay6_configure($verbose = false)
}
}
function dhcpd_staticmap($domain_fallback = 'not.found', $ifconfig_details = null, $valid_addresses=true, $proto=null)
function dhcpd_staticmap($domain_fallback = 'not.found', $ifconfig_details = null, $valid_addresses = true, $proto = null)
{
$staticmap = [];
foreach (empty($proto) ? [4, 6] : [$proto] as $inet) {

View File

@ -831,7 +831,7 @@ function system_trust_configure($verbose = false)
$certlist = str_replace("\r", '', base64_decode($entry['crt']));
$user_cas = [""];
foreach (explode("\n", $certlist) as $row) {
$user_cas[count($user_cas)-1] .= $row ."\n";
$user_cas[count($user_cas) - 1] .= $row . "\n";
if (strpos($row, '---END') > 0) {
$user_cas[] = "";
}