From 155ed7b8f53ef86dab57aa19139bb6976bba8214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20B=C3=B6ck?= <990588+hannob@users.noreply.github.com> Date: Sun, 29 Sep 2024 22:09:10 +0200 Subject: [PATCH] update codingstyle --- modules/dns/include/dnsinclude.php | 2 +- modules/systemuser/account.php | 4 ++-- modules/systemuser/overview.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/dns/include/dnsinclude.php b/modules/dns/include/dnsinclude.php index d6d6d1d..16f54db 100644 --- a/modules/dns/include/dnsinclude.php +++ b/modules/dns/include/dnsinclude.php @@ -394,7 +394,7 @@ function save_dns_record($id, $record) if ($host != "." && !filter_var($host, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)) { system_failure("Ungültiger Hostname!"); } - foreach($data as $d) { + foreach ($data as $d) { if (!(preg_match('/[a-z0-9]+=([a-z0-9,:.]+|"[a-z0-9,:.]+")/', $d))) { system_failure("Ungültiger HTTPS record!"); } diff --git a/modules/systemuser/account.php b/modules/systemuser/account.php index c11fba3..edb9c6b 100644 --- a/modules/systemuser/account.php +++ b/modules/systemuser/account.php @@ -36,7 +36,7 @@ foreach ($usedquota as $q) { $mailbar = ''; $mailstring = ''; - $mailpercent = round(($q['mailquota'] / max($q["systemquota"],1)) * 100); + $mailpercent = round(($q['mailquota'] / max($q["systemquota"], 1)) * 100); $mailwidth = 2 * min($mailpercent, 100); if ($q["mailquota"] > 0) { @@ -44,7 +44,7 @@ $mailbar = "
 
"; } - $percent = round((($q["systemquota_used"] + $q["mailquota"]) / max($q["systemquota"],1)) * 100); + $percent = round((($q["systemquota_used"] + $q["mailquota"]) / max($q["systemquota"], 1)) * 100); $color = ($percent > 99 ? 'red' : ($percent > 80 ? "yellow" : "green")); $width = 2 * min($percent, 100) - $mailwidth; diff --git a/modules/systemuser/overview.php b/modules/systemuser/overview.php index 6b33486..16d6377 100644 --- a/modules/systemuser/overview.php +++ b/modules/systemuser/overview.php @@ -28,7 +28,7 @@ foreach ($usedquota as $q) { $mailbar = ''; $mailstring = ''; - $mailpercent = round(($q['mailquota'] / max($q["systemquota"],1)) * 100); + $mailpercent = round(($q['mailquota'] / max($q["systemquota"], 1)) * 100); $mailwidth = 2 * min($mailpercent, 100); if ($q["mailquota"] > 0) { @@ -36,7 +36,7 @@ $mailbar = "
 
"; } - $percent = round((($q["systemquota_used"] + $q["mailquota"]) / max($q["systemquota"],1)) * 100); + $percent = round((($q["systemquota_used"] + $q["mailquota"]) / max($q["systemquota"], 1)) * 100); if ($percent > 90) { $need_more_storage = true; }