@@ -36,7 +36,7 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | public function index() |
| 38 | 38 | { |
| 39 | - return view('admin.servers.list',[ |
|
| 39 | + return view('admin.servers.list', [ |
|
| 40 | 40 | 'servers' => $this->repository->getAll() |
| 41 | 41 | ]); |
| 42 | 42 | } |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | public function index() |
| 38 | 38 | { |
| 39 | - return view('admin.users.list',[ |
|
| 39 | + return view('admin.users.list', [ |
|
| 40 | 40 | 'users' => $this->repository->getAll() |
| 41 | 41 | ]); |
| 42 | 42 | } |
@@ -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->getAll() |
| 40 | 40 | ]); |
| 41 | 41 | } |
@@ -20,11 +20,11 @@ |
||
| 20 | 20 | $res = $client->get('http://www.gameap.ru/gameap_version.txt'); |
| 21 | 21 | |
| 22 | 22 | if ($res->getStatusCode() == Response::HTTP_OK) { |
| 23 | - $lines = explode("\n", $res->getBody()->getContents()); |
|
| 24 | - $parts = explode(': ', $lines[0]); |
|
| 25 | - $latest = $parts[1]; |
|
| 23 | + $lines = explode("\n", $res->getBody()->getContents()); |
|
| 24 | + $parts = explode(': ', $lines[0]); |
|
| 25 | + $latest = $parts[1]; |
|
| 26 | 26 | |
| 27 | - return $latest; |
|
| 27 | + return $latest; |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | // GitHub |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function index() |
| 28 | 28 | { |
| 29 | - $latestVersion = Cache::remember('latestVersion', 3600, function () { |
|
| 29 | + $latestVersion = Cache::remember('latestVersion', 3600, function() { |
|
| 30 | 30 | return InfoService::latestRelease(); |
| 31 | 31 | }); |
| 32 | 32 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | } else { |
| 36 | 36 | // Fix. If client certificate exists in database but not exists certificates files. |
| 37 | 37 | // Delete invalid files. Generate new certificates. |
| 38 | - if (! Storage::exists($clientCertificate->certificate) || ! Storage::exists($clientCertificate->private_key)) { |
|
| 38 | + if (!Storage::exists($clientCertificate->certificate) || !Storage::exists($clientCertificate->private_key)) { |
|
| 39 | 39 | if (Storage::exists($clientCertificate->certificate)) { |
| 40 | 40 | Storage::delete($clientCertificate->certificate); |
| 41 | 41 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | $this->repository->update($dedicatedServer, $attributes); |
| 127 | 127 | |
| 128 | 128 | return redirect()->route('admin.dedicated_servers.index') |
| 129 | - ->with('success', __('dedicated_servers.update_success_msg')); |
|
| 129 | + ->with('success', __('dedicated_servers.update_success_msg')); |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | /** |
@@ -140,6 +140,6 @@ discard block |
||
| 140 | 140 | $this->repository->destroy($dedicatedServer); |
| 141 | 141 | |
| 142 | 142 | return redirect()->route('admin.dedicated_servers.index') |
| 143 | - ->with('success', __('dedicated_servers.delete_success_msg')); |
|
| 143 | + ->with('success', __('dedicated_servers.delete_success_msg')); |
|
| 144 | 144 | } |
| 145 | 145 | } |
@@ -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 | |