mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-10 17:39:32 +01:00
Update pint
This commit is contained in:
parent
906d4a7d28
commit
df88d33af4
@ -891,8 +891,6 @@ class EditServer extends EditRecord
|
|||||||
$ports->push(new Endpoint($port, $startEndpoint->ip));
|
$ports->push(new Endpoint($port, $startEndpoint->ip));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for ($i = $start; $i <= $end; $i++) {
|
for ($i = $start; $i <= $end; $i++) {
|
||||||
$ports->push($i);
|
$ports->push($i);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,6 @@
|
|||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use App\Exceptions\Service\HasActiveServersException;
|
use App\Exceptions\Service\HasActiveServersException;
|
||||||
use App\Models\Objects\Endpoint;
|
|
||||||
use App\Repositories\Daemon\DaemonConfigurationRepository;
|
use App\Repositories\Daemon\DaemonConfigurationRepository;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Support\Facades\Http;
|
use Illuminate\Support\Facades\Http;
|
||||||
|
|||||||
@ -200,8 +200,7 @@ class Server extends Model
|
|||||||
*/
|
*/
|
||||||
public function getPortMappings(): array
|
public function getPortMappings(): array
|
||||||
{
|
{
|
||||||
return $this->ports->mapToGroups(fn (Endpoint $endpoint) =>
|
return $this->ports->mapToGroups(fn (Endpoint $endpoint) => [$endpoint->ip => $endpoint->port]
|
||||||
[$endpoint->ip => $endpoint->port]
|
|
||||||
)->toArray();
|
)->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,12 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
"class_attributes_separation": false,
|
"class_attributes_separation": false,
|
||||||
"concat_space": false,
|
"concat_space": false,
|
||||||
|
"new_with_parentheses": false,
|
||||||
"not_operator_with_successor_space": false,
|
"not_operator_with_successor_space": false,
|
||||||
"nullable_type_declaration_for_default_null_value": false,
|
"nullable_type_declaration_for_default_null_value": false,
|
||||||
"ordered_imports": false,
|
"ordered_imports": false,
|
||||||
"phpdoc_align": false,
|
"phpdoc_align": false,
|
||||||
"phpdoc_separation": false
|
"phpdoc_separation": false,
|
||||||
|
"single_line_empty_body": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user