Passed
Push — develop ( 989035...0aa5fb )
by Nikita
09:07 queued 04:02
created
app/Repositories/ServerRepository.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         }
71 71
 
72 72
         if (empty($attributes['rcon'])) {
73
-             $attributes['rcon'] = Str::random(self::DEFAULT_RCON_PASSWORD_LENGTH);
73
+                $attributes['rcon'] = Str::random(self::DEFAULT_RCON_PASSWORD_LENGTH);
74 74
         }
75 75
 
76 76
         $dedicatedServer = DedicatedServer::findOrFail($attributes['ds_id']);
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         $addInstallTask = false;
65 65
         if (isset($attributes['install'])) {
66
-            $attributes['installed'] = ! $attributes['install'];
66
+            $attributes['installed'] = !$attributes['install'];
67 67
             $addInstallTask = true;
68 68
 
69 69
             unset($attributes['install']);
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
     {
180 180
         return $this->model->select(['id', 'name', 'server_ip', 'server_port', 'game_id', 'game_mod_id'])
181 181
             ->with(['game' => function($query) {
182
-                $query->select('code','name');
182
+                $query->select('code', 'name');
183 183
             }])
184 184
             ->where('name', 'LIKE', '%' . $query . '%')
185 185
             ->get();
@@ -191,9 +191,9 @@  discard block
 block discarded – undo
191 191
      */
192 192
     public function update(Server $server, array $attributes)
193 193
     {
194
-        $attributes['enabled'] = (bool)array_key_exists('enabled', $attributes);
195
-        $attributes['blocked'] = (bool)array_key_exists('blocked', $attributes);
196
-        $attributes['installed'] = (bool)array_key_exists('installed', $attributes);
194
+        $attributes['enabled'] = (bool) array_key_exists('enabled', $attributes);
195
+        $attributes['blocked'] = (bool) array_key_exists('blocked', $attributes);
196
+        $attributes['installed'] = (bool) array_key_exists('installed', $attributes);
197 197
 
198 198
         if (isset($attributes['ds_id'])) {
199 199
             $server->ds_id = $attributes['ds_id'];
Please login to merge, or discard this patch.
app/Models/Server.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             return false;
101 101
         }
102 102
         
103
-        $lastProcessCheck = Carbon::createFromFormat('Y-m-d H:i:s' , $this->last_process_check)->timestamp;
103
+        $lastProcessCheck = Carbon::createFromFormat('Y-m-d H:i:s', $this->last_process_check)->timestamp;
104 104
 
105 105
         if ($this->process_active && $lastProcessCheck >= Carbon::now()->timestamp - self::TIME_EXPIRE_PROCESS_CHECK) {
106 106
             return true;
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
         if ($this->gameMod != null && is_array($this->gameMod->vars)) {
204 204
             foreach ($this->gameMod->vars as $var) {
205 205
                 $varname = $var['var'];
206
-                $aliases[ $varname ] = isset($this->vars[$varname])
206
+                $aliases[$varname] = isset($this->vars[$varname])
207 207
                     ? $this->vars[$varname]
208 208
                     : $var['default'];
209 209
             }
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
         if (!Collection::hasMacro('paginate')) {
26 26
             Collection::macro('paginate',
27
-                function ($perPage = 15, $page = null, $options = []) {
27
+                function($perPage = 15, $page = null, $options = []) {
28 28
                     $page = $page ?: (Paginator::resolveCurrentPage() ?: 1);
29 29
                     return (new LengthAwarePaginator(
30 30
                         $this->forPage($page, $perPage), $this->count(), $perPage, $page, $options))
Please login to merge, or discard this patch.
app/Repositories/UserRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             $user->servers()->sync($fields['servers']);
61 61
             DB::table('permissions')
62 62
                 ->where('entity_id', '=', $user->id)
63
-                ->whereIn('ability_id', function ($query) use ($fields) {
63
+                ->whereIn('ability_id', function($query) use ($fields) {
64 64
                     $query->select('id')
65 65
                         ->from('abilities')
66 66
                         ->where('entity_type', '=', Server::class)
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             $user->servers()->detach();
72 72
             DB::table('permissions')
73 73
                 ->where('entity_id', '=', $user->id)
74
-                ->whereIn('ability_id', function ($query) {
74
+                ->whereIn('ability_id', function($query) {
75 75
                     $query->select('id')
76 76
                         ->from('abilities')
77 77
                         ->where('entity_type', '=', Server::class);
Please login to merge, or discard this patch.