A lot of code cleanup and code sanitation done.
This commit is contained in:
@@ -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) { ?>
|
||||
|
||||
Reference in New Issue
Block a user