Passed
Push — develop ( 0262e3...bcc3c6 )
by Nikita
10:09
created
app/Http/Controllers/GdaemonAPI/ServersController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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')
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,13 +28,14 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Http/Requests/GdaemonAPI/ServerBulkRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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->all());
24 24
     }
Please login to merge, or discard this patch.