Styling fixes

This commit is contained in:
Lance Pioch 2024-04-19 18:08:17 -04:00
parent 82c294ab63
commit 716d298b75
2 changed files with 3 additions and 2 deletions

View File

@ -207,6 +207,7 @@ class ServerResource extends Resource
// Do not add non numerical ports
$update = true;
continue;
}
@ -217,7 +218,7 @@ class ServerResource extends Resource
}
$start = max((int) $start, 0);
$end = min((int) $end, 2**16-1);
$end = min((int) $end, 2 ** 16 - 1);
for ($i = $start; $i <= $end; $i++) {
$ports->push($i);
}

View File

@ -307,7 +307,7 @@ class Node extends Model
$ips = collect();
if (is_ip($this->fqdn)) {
$ips->push($this->fqdn);
} else if ($dnsRecords = gethostbynamel($this->fqdn)) {
} elseif ($dnsRecords = gethostbynamel($this->fqdn)) {
$ips->concat($dnsRecords);
}