@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | $addInstallTask = false; |
| 46 | 46 | if (isset($attributes['install'])) { |
| 47 | - $attributes['installed'] = ! $attributes['install']; |
|
| 47 | + $attributes['installed'] = !$attributes['install']; |
|
| 48 | 48 | $addInstallTask = true; |
| 49 | 49 | |
| 50 | 50 | unset($attributes['install']); |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | { |
| 118 | 118 | return $this->model->select(['id', 'name', 'server_ip', 'server_port', 'game_id', 'game_mod_id']) |
| 119 | 119 | ->with(['game' => function($query) { |
| 120 | - $query->select('code','name'); |
|
| 120 | + $query->select('code', 'name'); |
|
| 121 | 121 | }]) |
| 122 | 122 | ->where('name', 'LIKE', '%' . $query . '%') |
| 123 | 123 | ->get(); |
@@ -129,9 +129,9 @@ discard block |
||
| 129 | 129 | */ |
| 130 | 130 | public function update(Server $server, array $attributes) |
| 131 | 131 | { |
| 132 | - $attributes['enabled'] = (bool)array_key_exists('enabled', $attributes); |
|
| 133 | - $attributes['blocked'] = (bool)array_key_exists('blocked', $attributes); |
|
| 134 | - $attributes['installed'] = (bool)array_key_exists('installed', $attributes); |
|
| 132 | + $attributes['enabled'] = (bool) array_key_exists('enabled', $attributes); |
|
| 133 | + $attributes['blocked'] = (bool) array_key_exists('blocked', $attributes); |
|
| 134 | + $attributes['installed'] = (bool) array_key_exists('installed', $attributes); |
|
| 135 | 135 | |
| 136 | 136 | // Fix path. Remove absolute dedicated server path |
| 137 | 137 | $attributes['dir'] = $this->fixPath($attributes['dir'], $server->dedicatedServer->work_path); |