Cleanup unused vars (#366)

* Update app/Exceptions/Handler.php

Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
This commit is contained in:
MartinOscar 2024-06-11 18:22:37 +02:00 committed by GitHub
parent 8e5660a1b9
commit 58bfa12280
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -215,7 +215,7 @@ class Handler extends ExceptionHandler
->map(fn ($trace) => Arr::except($trace, ['args'])) ->map(fn ($trace) => Arr::except($trace, ['args']))
->all(), ->all(),
'previous' => Collection::make($this->extractPrevious($e)) 'previous' => Collection::make($this->extractPrevious($e))
->map(fn ($exception) => $e->getTrace()) ->map(fn ($exception) => $exception->getTrace())
->map(fn ($trace) => Arr::except($trace, ['args'])) ->map(fn ($trace) => Arr::except($trace, ['args']))
->all(), ->all(),
], ],

View File

@ -34,7 +34,7 @@ class ServersRelationManager extends RelationManager
->label('Docker Image'), ->label('Docker Image'),
Tables\Columns\SelectColumn::make('allocation.id') Tables\Columns\SelectColumn::make('allocation.id')
->label('Primary Allocation') ->label('Primary Allocation')
->options(fn ($state, Server $server) => [$server->allocation->id => $server->allocation->address]) ->options(fn (Server $server) => [$server->allocation->id => $server->allocation->address])
->selectablePlaceholder(false) ->selectablePlaceholder(false)
->sortable(), ->sortable(),
]); ]);

View File

@ -34,7 +34,7 @@ class NodesRelationManager extends RelationManager
->sortable(), ->sortable(),
Tables\Columns\SelectColumn::make('allocation.id') Tables\Columns\SelectColumn::make('allocation.id')
->label('Primary Allocation') ->label('Primary Allocation')
->options(fn ($state, Server $server) => [$server->allocation->id => $server->allocation->address]) ->options(fn (Server $server) => [$server->allocation->id => $server->allocation->address])
->selectablePlaceholder(false) ->selectablePlaceholder(false)
->sortable(), ->sortable(),
Tables\Columns\TextColumn::make('memory')->icon('tabler-device-desktop-analytics'), Tables\Columns\TextColumn::make('memory')->icon('tabler-device-desktop-analytics'),

View File

@ -70,7 +70,7 @@ class ListServers extends ListRecords
->sortable(), ->sortable(),
Tables\Columns\SelectColumn::make('allocation_id') Tables\Columns\SelectColumn::make('allocation_id')
->label('Primary Allocation') ->label('Primary Allocation')
->options(fn ($state, Server $server) => $server->allocations->mapWithKeys( ->options(fn (Server $server) => $server->allocations->mapWithKeys(
fn ($allocation) => [$allocation->id => $allocation->address]) fn ($allocation) => [$allocation->id => $allocation->address])
) )
->selectablePlaceholder(false) ->selectablePlaceholder(false)

View File

@ -68,7 +68,7 @@ class ServersRelationManager extends RelationManager
->sortable(), ->sortable(),
Tables\Columns\SelectColumn::make('allocation.id') Tables\Columns\SelectColumn::make('allocation.id')
->label('Primary Allocation') ->label('Primary Allocation')
->options(fn ($state, Server $server) => [$server->allocation->id => $server->allocation->address]) ->options(fn (Server $server) => [$server->allocation->id => $server->allocation->address])
->selectablePlaceholder(false) ->selectablePlaceholder(false)
->sortable(), ->sortable(),
Tables\Columns\TextColumn::make('image')->hidden(), Tables\Columns\TextColumn::make('image')->hidden(),