@@ -28,7 +28,7 @@ |
||
28 | 28 | public function index(DedicatedServer $dedicatedServer): JsonResponse |
29 | 29 | { |
30 | 30 | return response()->json( |
31 | - QueryBuilder::for(Server::where('ds_id', '=', $dedicatedServer->id)) |
|
31 | + QueryBuilder::for (Server::where('ds_id', '=', $dedicatedServer->id)) |
|
32 | 32 | ->allowedFilters('id') |
33 | 33 | ->with('game') |
34 | 34 | ->with('gameMod') |
@@ -28,13 +28,14 @@ |
||
28 | 28 | public function index(DedicatedServer $dedicatedServer): JsonResponse |
29 | 29 | { |
30 | 30 | return response()->json( |
31 | - QueryBuilder::for(Server::where('ds_id', '=', $dedicatedServer->id)) |
|
32 | - ->allowedFilters('id') |
|
31 | + QueryBuilder::for(Server::where('ds_id', '=', $dedicatedServer->id)) { |
|
32 | + ->allowedFilters('id') |
|
33 | 33 | ->with('game') |
34 | 34 | ->with('gameMod') |
35 | 35 | ->with('settings') |
36 | 36 | ->get() |
37 | 37 | ); |
38 | + } |
|
38 | 39 | } |
39 | 40 | |
40 | 41 | public function server(Server $server): JsonResponse |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | public function values(): array |
20 | 20 | { |
21 | - return array_map(function ($v) { |
|
21 | + return array_map(function($v) { |
|
22 | 22 | return Arr::only($v, ['id', 'installed', 'process_active', 'last_process_check']); |
23 | 23 | }, $this->json()->all()); |
24 | 24 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | public function boot(): void |
19 | 19 | { |
20 | - $this->app->bind(SerializerInterface::class, function () { |
|
20 | + $this->app->bind(SerializerInterface::class, function() { |
|
21 | 21 | |
22 | 22 | return new Serializer( |
23 | 23 | [new ObjectNormalizer(null, new CamelCaseToSnakeCaseNameConverter())], |