Update pint

This commit is contained in:
Lance Pioch 2024-09-21 15:45:22 -04:00
parent 906d4a7d28
commit df88d33af4
4 changed files with 4 additions and 6 deletions

View File

@ -891,8 +891,6 @@ class EditServer extends EditRecord
$ports->push(new Endpoint($port, $startEndpoint->ip));
}
for ($i = $start; $i <= $end; $i++) {
$ports->push($i);
}

View File

@ -3,7 +3,6 @@
namespace App\Models;
use App\Exceptions\Service\HasActiveServersException;
use App\Models\Objects\Endpoint;
use App\Repositories\Daemon\DaemonConfigurationRepository;
use Exception;
use Illuminate\Support\Facades\Http;

View File

@ -200,8 +200,7 @@ class Server extends Model
*/
public function getPortMappings(): array
{
return $this->ports->mapToGroups(fn (Endpoint $endpoint) =>
[$endpoint->ip => $endpoint->port]
return $this->ports->mapToGroups(fn (Endpoint $endpoint) => [$endpoint->ip => $endpoint->port]
)->toArray();
}

View File

@ -3,10 +3,12 @@
"rules": {
"class_attributes_separation": false,
"concat_space": false,
"new_with_parentheses": false,
"not_operator_with_successor_space": false,
"nullable_type_declaration_for_default_null_value": false,
"ordered_imports": false,
"phpdoc_align": false,
"phpdoc_separation": false
"phpdoc_separation": false,
"single_line_empty_body": false
}
}