diff --git a/app/Filament/Resources/ServerResource.php b/app/Filament/Resources/ServerResource.php index f21a2d0b6..9ce4e5a0f 100644 --- a/app/Filament/Resources/ServerResource.php +++ b/app/Filament/Resources/ServerResource.php @@ -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); } diff --git a/app/Models/Node.php b/app/Models/Node.php index e42164357..9abf8aea2 100644 --- a/app/Models/Node.php +++ b/app/Models/Node.php @@ -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); }