@@ -155,7 +155,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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']; |