Test Setup Failed
Push — master ( 14844f...a25def )
by Nikita
23:06 queued 16:32
created
app/Repositories/DedicatedServersRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function store(array $attributes)
86 86
     {
87
-        $attributes['ip'] = array_filter($attributes['ip'], function ($value) {
87
+        $attributes['ip'] = array_filter($attributes['ip'], function($value) {
88 88
             return !empty($value);
89 89
         });
90 90
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function update(DedicatedServer $dedicatedServer, array $attributes): void
134 134
     {
135
-        $attributes['ip'] = array_filter($attributes['ip'], function ($value) {
135
+        $attributes['ip'] = array_filter($attributes['ip'], function($value) {
136 136
             return !empty($value);
137 137
         });
138 138
 
Please login to merge, or discard this patch.
app/Repositories/ServerRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 
156 156
         $query = DB::table($serversTable)
157 157
             ->selectRaw("{$serversTable}.*, {$gamesTable}.name as game_name")
158
-            ->whereIn('game_id', function ($query) use ($engines, $serversTable, $gamesTable): void {
158
+            ->whereIn('game_id', function($query) use ($engines, $serversTable, $gamesTable): void {
159 159
                 $query->select('code')
160 160
                     ->from($gamesTable)
161 161
                     ->whereIn('engine', $engines);
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     public function search($query)
182 182
     {
183 183
         return $this->model->select(['id', 'name', 'server_ip', 'server_port', 'game_id', 'game_mod_id'])
184
-            ->with(['game' => function ($query): void {
184
+            ->with(['game' => function($query): void {
185 185
                 $query->select('code', 'name');
186 186
             }])
187 187
             ->where('name', 'LIKE', '%' . $query . '%')
@@ -194,9 +194,9 @@  discard block
 block discarded – undo
194 194
      */
195 195
     public function update(Server $server, array $attributes): void
196 196
     {
197
-        $attributes['enabled']   = (bool)array_key_exists('enabled', $attributes);
198
-        $attributes['blocked']   = (bool)array_key_exists('blocked', $attributes);
199
-        $attributes['installed'] = (bool)array_key_exists('installed', $attributes);
197
+        $attributes['enabled']   = (bool) array_key_exists('enabled', $attributes);
198
+        $attributes['blocked']   = (bool) array_key_exists('blocked', $attributes);
199
+        $attributes['installed'] = (bool) array_key_exists('installed', $attributes);
200 200
 
201 201
         if (isset($attributes['ds_id'])) {
202 202
             $server->ds_id = $attributes['ds_id'];
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function index()
28 28
     {
29 29
         $infoService   = $this->infoService;
30
-        $latestVersion = Cache::remember('latestVersion', 3600, static function () use ($infoService) {
30
+        $latestVersion = Cache::remember('latestVersion', 3600, static function() use ($infoService) {
31 31
             return $infoService->latestRelease();
32 32
         });
33 33
 
Please login to merge, or discard this patch.
app/Http/Controllers/API/ServersController.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 
279 279
     public function getList()
280 280
     {
281
-        return QueryBuilder::for(Server::class)
281
+        return QueryBuilder::for (Server::class)
282 282
             ->allowedFilters('ds_id')
283 283
             ->allowedAppends('full_path')
284 284
             ->get([
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
         if (Auth::user()->can('admin roles & permissions')) {
311 311
             $extraMessage = $this->getDocMessage($exception);
312 312
         } else {
313
-            $extraMessage = (string)__('main.common_admin_error');
313
+            $extraMessage = (string) __('main.common_admin_error');
314 314
         }
315 315
 
316 316
         return $this->makeErrorResponse($exception->getMessage() . $extraMessage);
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -278,8 +278,8 @@  discard block
 block discarded – undo
278 278
 
279 279
     public function getList()
280 280
     {
281
-        return QueryBuilder::for(Server::class)
282
-            ->allowedFilters('ds_id')
281
+        return QueryBuilder::for(Server::class) {
282
+                    ->allowedFilters('ds_id')
283 283
             ->allowedAppends('full_path')
284 284
             ->get([
285 285
                 'id',
@@ -298,6 +298,7 @@  discard block
 block discarded – undo
298 298
                 'rcon_port',
299 299
                 'dir',
300 300
             ]);
301
+        }
301 302
     }
302 303
 
303 304
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/GdaemonAPI/TasksController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     public function index(DedicatedServer $dedicatedServer)
34 34
     {
35
-        return QueryBuilder::for(GdaemonTask::where('dedicated_server_id', $dedicatedServer->id))
35
+        return QueryBuilder::for (GdaemonTask::where('dedicated_server_id', $dedicatedServer->id))
36 36
             ->allowedFilters(['status'])
37 37
             ->allowedAppends(['status_num'])
38 38
             ->get();
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,10 +32,11 @@
 block discarded – undo
32 32
      */
33 33
     public function index(DedicatedServer $dedicatedServer)
34 34
     {
35
-        return QueryBuilder::for(GdaemonTask::where('dedicated_server_id', $dedicatedServer->id))
36
-            ->allowedFilters(['status'])
35
+        return QueryBuilder::for(GdaemonTask::where('dedicated_server_id', $dedicatedServer->id)) {
36
+                    ->allowedFilters(['status'])
37 37
             ->allowedAppends(['status_num'])
38 38
             ->get();
39
+        }
39 40
     }
40 41
 
41 42
     public function update(GdaemonTask $gdaemonTask): JsonResponse
Please login to merge, or discard this patch.