A lot of code cleanup and code sanitation done.

This commit is contained in:
2026-06-20 00:31:32 +02:00
parent be392b8149
commit d781078c0d
100 changed files with 733 additions and 2097 deletions

View File

@@ -36,7 +36,7 @@ class serverOverviewBuilder
public bool $showCompanies = true;
public function processServerData()
public function processServerData(): void
{
foreach ($this->servers as $server) {
if (!empty($server['server_backup'])) {
@@ -86,7 +86,7 @@ class serverOverviewBuilder
}
}
private function cleanNumber($num)
private function cleanNumber($num): string
{
// If integer value, return without formatting
if (floor($num) == $num) {
@@ -97,7 +97,7 @@ class serverOverviewBuilder
return rtrim(rtrim(number_format($num, 10, '.', ''), '0'), '.');
}
public function serverOverviewOutPut()
public function serverOverviewOutPut(): void
{ ?>
<div class="form-group form-show-validation row mb-3">
<?php if ($this->showServerOverviewTitle) { ?>