Passed
Push — develop ( cba45e...7901ef )
by Nikita
16:02
created
app/Repositories/ServerRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.