@@ -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']); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | { |
| 115 | 115 | return $this->model->select(['id', 'name', 'server_ip', 'server_port', 'game_id', 'game_mod_id']) |
| 116 | 116 | ->with(['game' => function($query) { |
| 117 | - $query->select('code','name'); |
|
| 117 | + $query->select('code', 'name'); |
|
| 118 | 118 | }]) |
| 119 | 119 | ->where('name', 'LIKE', '%' . $query . '%') |
| 120 | 120 | ->get(); |
@@ -126,9 +126,9 @@ discard block |
||
| 126 | 126 | */ |
| 127 | 127 | public function update(Server $server, array $attributes) |
| 128 | 128 | { |
| 129 | - $attributes['enabled'] = (bool)array_key_exists('enabled', $attributes); |
|
| 130 | - $attributes['blocked'] = (bool)array_key_exists('blocked', $attributes); |
|
| 131 | - $attributes['installed'] = (bool)array_key_exists('installed', $attributes); |
|
| 129 | + $attributes['enabled'] = (bool) array_key_exists('enabled', $attributes); |
|
| 130 | + $attributes['blocked'] = (bool) array_key_exists('blocked', $attributes); |
|
| 131 | + $attributes['installed'] = (bool) array_key_exists('installed', $attributes); |
|
| 132 | 132 | |
| 133 | 133 | $server->update($attributes); |
| 134 | 134 | } |