mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 11:04:45 +02:00
Apply suggestions from code review
This commit is contained in:
parent
f3171939a4
commit
5a3b50b31f
@ -113,11 +113,9 @@ class AllocationsRelationManager extends RelationManager
|
||||
|
||||
$start = max((int) $start, 0);
|
||||
$end = min((int) $end, 2 ** 16 - 1);
|
||||
$range = range($start, $end);
|
||||
foreach ($range as $i) {
|
||||
foreach (range($start, $end) as $i) {
|
||||
$ports->push($i);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$uniquePorts = $ports->unique()->values();
|
||||
|
Loading…
x
Reference in New Issue
Block a user