@@ -94,6 +94,6 @@ |
||
94 | 94 | $this->repository->destroy($clientCertificate); |
95 | 95 | |
96 | 96 | return redirect()->route('admin.client_certificates.index') |
97 | - ->with('success', __('client_certificates.delete_success_msg')); |
|
97 | + ->with('success', __('client_certificates.delete_success_msg')); |
|
98 | 98 | } |
99 | 99 | } |
100 | 100 | \ No newline at end of file |
@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | $privateKey = (new RSA())->createKey(self::PRIVATE_KEY_BITS)['privatekey']; |
41 | 41 | |
42 | - $privateKeyInfo = PrivateKeyInfo::fromPEM(PEM::fromString( $privateKey)); |
|
42 | + $privateKeyInfo = PrivateKeyInfo::fromPEM(PEM::fromString($privateKey)); |
|
43 | 43 | |
44 | 44 | $publicKeyInfo = $privateKeyInfo->publicKeyInfo(); |
45 | 45 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | ] |
20 | 20 | ); |
21 | 21 | |
22 | - $body = json_decode((string)$response->getBody()); |
|
22 | + $body = json_decode((string) $response->getBody()); |
|
23 | 23 | return $body->success; |
24 | 24 | } |
25 | 25 | } |
26 | 26 | \ No newline at end of file |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function index() |
37 | 37 | { |
38 | - return view('admin.games.list',[ |
|
38 | + return view('admin.games.list', [ |
|
39 | 39 | 'games' => $this->repository->allWith('mods') |
40 | 40 | ]); |
41 | 41 | } |
@@ -281,7 +281,7 @@ |
||
281 | 281 | if (Auth::user()->can('admin roles & permissions')) { |
282 | 282 | $extraMessage = $this->getDocMessage($exception); |
283 | 283 | } else { |
284 | - $extraMessage = (string)__('main.common_admin_error'); |
|
284 | + $extraMessage = (string) __('main.common_admin_error'); |
|
285 | 285 | } |
286 | 286 | |
287 | 287 | return $this->makeErrorResponse($exception->getMessage() . $extraMessage); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function index(DedicatedServer $dedicatedServer) |
38 | 38 | { |
39 | - return QueryBuilder::for(Server::where('ds_id', '=', $dedicatedServer->id)) |
|
39 | + return QueryBuilder::for (Server::where('ds_id', '=', $dedicatedServer->id)) |
|
40 | 40 | ->allowedFilters('id') |
41 | 41 | ->get(); |
42 | 42 | } |
@@ -63,7 +63,7 @@ discard block |
||
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 |
||
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 |
||
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']; |
@@ -24,7 +24,7 @@ |
||
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)) |
@@ -60,7 +60,7 @@ discard block |
||
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 |
||
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); |