Passed
Push — develop ( 989035...0aa5fb )
by Nikita
09:07 queued 04:02
created
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/Services/CertificateService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
         
Please login to merge, or discard this patch.
app/Validators/ReCaptcha.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
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
@@ -25,11 +25,11 @@
 block discarded – undo
25 25
         }
26 26
 
27 27
         if ($res->getStatusCode() == Response::HTTP_OK) {
28
-             $lines = explode("\n", $res->getBody()->getContents());
29
-             $parts = explode(': ', $lines[0]);
30
-             $latest = $parts[1];
28
+                $lines = explode("\n", $res->getBody()->getContents());
29
+                $parts = explode(': ', $lines[0]);
30
+                $latest = $parts[1];
31 31
              
32
-             return $latest;
32
+                return $latest;
33 33
         }
34 34
         
35 35
         // GitHub
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->allWith('mods')
40 40
         ]);
41 41
     }
Please login to merge, or discard this patch.
app/Http/Requests/Admin/ServerUpdateRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
         $portRules = ['nullable', 'numeric', 'digits_between:1,65535',
15 15
             Rule::unique('servers', 'server_port')
16 16
                 ->ignore($this->route('server'))
17
-                ->where(function ($query) {
17
+                ->where(function($query) {
18 18
                     return $query
19 19
                         ->where('ds_id', $this->ds_id)
20 20
                         ->where('server_ip', $this->server_ip)
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
             }),
23 23
             Rule::unique('servers', 'query_port')
24 24
                 ->ignore($this->route('server'))
25
-                ->where(function ($query) {
25
+                ->where(function($query) {
26 26
                     return $query
27 27
                         ->where('ds_id', $this->ds_id)
28 28
                         ->where('server_ip', $this->server_ip)
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             }),
31 31
             Rule::unique('servers', 'rcon_port')
32 32
                 ->ignore($this->route('server'))
33
-                ->where(function ($query) {
33
+                ->where(function($query) {
34 34
                     return $query
35 35
                         ->where('ds_id', $this->ds_id)
36 36
                         ->where('server_ip', $this->server_ip)
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
             'dir' => ['required', 'string', Rule::unique('servers', 'dir')
56 56
                 ->ignore($this->route('server'))
57
-                ->where(function ($query) {
57
+                ->where(function($query) {
58 58
                 return $query->where('ds_id', $this->ds_id);
59 59
             })]
60 60
         ];
Please login to merge, or discard this patch.
app/Http/Requests/Admin/ServerCreateRequest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
         $portRules = ['nullable', 'numeric', 'digits_between:1,65535',
13 13
             Rule::unique('servers', 'server_port')
14 14
                 ->ignore($this->route('server'))
15
-                ->where(function ($query) {
15
+                ->where(function($query) {
16 16
                     return $query
17 17
                         ->where('ds_id', $this->ds_id)
18 18
                         ->where('server_ip', $this->server_ip)
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
                 }),
21 21
             Rule::unique('servers', 'query_port')
22 22
                 ->ignore($this->route('server'))
23
-                ->where(function ($query) {
23
+                ->where(function($query) {
24 24
                     return $query
25 25
                         ->where('ds_id', $this->ds_id)
26 26
                         ->where('server_ip', $this->server_ip)
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                 }),
29 29
             Rule::unique('servers', 'rcon_port')
30 30
                 ->ignore($this->route('server'))
31
-                ->where(function ($query) {
31
+                ->where(function($query) {
32 32
                     return $query
33 33
                         ->where('ds_id', $this->ds_id)
34 34
                         ->where('server_ip', $this->server_ip)
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
             'dir' => ['nullable', 'string', Rule::unique('servers', 'dir')
54 54
                 ->ignore($this->route('server'))
55
-                ->where(function ($query) {
55
+                ->where(function($query) {
56 56
                     return $query->where('ds_id', $this->ds_id);
57 57
                 })]
58 58
         ];
Please login to merge, or discard this patch.
app/Http/Controllers/API/ServersController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.