Passed
Push — develop ( a244f9...bd4987 )
by Nikita
06:56
created
app/Repositories/DedicatedServersRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */
63 63
     public function destroy(DedicatedServer $dedicatedServer)
64 64
     {
65
-        if (! Storage::disk('local')->exists('gdaemon_certs/' . $dedicatedServer->gdaemon_server_cert)) {
65
+        if (!Storage::disk('local')->exists('gdaemon_certs/' . $dedicatedServer->gdaemon_server_cert)) {
66 66
             // TODO: Not working =(
67 67
             // Storage::disk('local')->delete('gdaemon_certs/' . $dedicatedServer->gdaemon_server_cert);
68 68
 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ServersController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/UsersController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/GamesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Services/InfoService.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
         
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/DedicatedServersController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ClientCertificatesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,6 +94,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Repositories/ClientCertificateRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function destroy(ClientCertificate $clientCertificate)
103 103
     {
104
-        if (! Storage::disk('local')->exists('certs/client/' . $clientCertificate->certificate)) {
104
+        if (!Storage::disk('local')->exists('certs/client/' . $clientCertificate->certificate)) {
105 105
             // TODO: Not working =(
106 106
             // Storage::disk('local')->delete('certs/client/' . $clientCertificate->certificate);
107 107
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             unlink($file);
114 114
         }
115 115
 
116
-        if (! Storage::disk('local')->exists('certs/client/' . $clientCertificate->private_key)) {
116
+        if (!Storage::disk('local')->exists('certs/client/' . $clientCertificate->private_key)) {
117 117
             $file = Storage::disk('local')
118 118
                 ->getDriver()
119 119
                 ->getAdapter()
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         } else {
148 148
             // Fix. If client certificate exists in database but not exists certificates files.
149 149
             // Delete invalid files. Generate new certificates.
150
-            if (! Storage::exists($clientCertificate->certificate) || ! Storage::exists($clientCertificate->private_key)) {
150
+            if (!Storage::exists($clientCertificate->certificate) || !Storage::exists($clientCertificate->private_key)) {
151 151
                 if (Storage::exists($clientCertificate->certificate)) {
152 152
                     Storage::delete($clientCertificate->certificate);
153 153
                 }
Please login to merge, or discard this patch.