@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | $addInstallTask = false; |
| 45 | 45 | if (isset($attributes['install'])) { |
| 46 | - $attributes['installed'] = ! $attributes['install']; |
|
| 46 | + $attributes['installed'] = !$attributes['install']; |
|
| 47 | 47 | $addInstallTask = true; |
| 48 | 48 | |
| 49 | 49 | unset($attributes['install']); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | { |
| 108 | 108 | return $this->model->select(['id', 'name', 'server_ip', 'server_port', 'game_id', 'game_mod_id']) |
| 109 | 109 | ->with(['game' => function($query) { |
| 110 | - $query->select('code','name'); |
|
| 110 | + $query->select('code', 'name'); |
|
| 111 | 111 | }]) |
| 112 | 112 | ->where('name', 'LIKE', '%' . $query . '%') |
| 113 | 113 | ->get(); |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | public function update(Server $server, array $attributes) |
| 121 | 121 | { |
| 122 | - $attributes['enabled'] = (bool)array_key_exists('enabled', $attributes); |
|
| 122 | + $attributes['enabled'] = (bool) array_key_exists('enabled', $attributes); |
|
| 123 | 123 | $server->update($attributes); |
| 124 | 124 | } |
| 125 | 125 | |