Passed
Push — develop ( 2f1f26...b139eb )
by Nikita
06:08
created
app/Repositories/ServerRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.