mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-22 04:02:10 +01: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);
|
$start = max((int) $start, 0);
|
||||||
$end = min((int) $end, 2 ** 16 - 1);
|
$end = min((int) $end, 2 ** 16 - 1);
|
||||||
$range = range($start, $end);
|
foreach (range($start, $end) as $i) {
|
||||||
foreach ($range as $i) {
|
|
||||||
$ports->push($i);
|
$ports->push($i);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$uniquePorts = $ports->unique()->values();
|
$uniquePorts = $ports->unique()->values();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user