phpstan
This commit is contained in:
parent
3ea6d45cda
commit
ee863fa262
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class AllocationSelectionService
|
||||||
// Ranges are stored in the ports array as an array which can be
|
// Ranges are stored in the ports array as an array which can be
|
||||||
// better processed in the repository.
|
// better processed in the repository.
|
||||||
if (preg_match(AssignmentService::PORT_RANGE_REGEX, $port, $matches)) {
|
if (preg_match(AssignmentService::PORT_RANGE_REGEX, $port, $matches)) {
|
||||||
if (abs($matches[2] - $matches[1]) > AssignmentService::PORT_RANGE_LIMIT) {
|
if (abs(intval($matches[2]) - intval($matches[1])) > AssignmentService::PORT_RANGE_LIMIT) {
|
||||||
throw new DisplayException(trans('exceptions.allocations.too_many_ports'));
|
throw new DisplayException(trans('exceptions.allocations.too_many_ports'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue