Passed
Push — master ( 16736d...6d9f29 )
by Arthur
05:34
created
src/Modules/User/Services/UserService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     public function setRoles($id, array $roles): void
71 71
     {
72 72
         if (!in_array(Role::USER, $roles))
73
-            $roles[] = Role::USER;
73
+            $roles[ ] = Role::USER;
74 74
         $this->find($id)->syncRoles($roles);
75 75
     }
76 76
 }
Please login to merge, or discard this patch.
src/Modules/Machine/Contracts/MachineServiceContract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,5 +22,5 @@
 block discarded – undo
22 22
 
23 23
     public function delete($id): bool;
24 24
 
25
-    public function heartbeat($id,$data): void;
25
+    public function heartbeat($id, $data): void;
26 26
 }
Please login to merge, or discard this patch.
src/Modules/Machine/Events/MachineUpdatedEvent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 class MachineUpdatedEvent extends Event implements ShouldBroadcast
18 18
 {
19
-    public $listeners = [];
19
+    public $listeners = [ ];
20 20
 
21 21
     /**
22 22
      * @var Machine
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function broadcastOn()
37 37
     {
38
-        return new PrivateChannel('user.' . $this->machine->user_id);
38
+        return new PrivateChannel('user.'.$this->machine->user_id);
39 39
     }
40 40
 
41 41
     public function broadcastAs()
Please login to merge, or discard this patch.
src/Modules/Machine/Services/MachineService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@
 block discarded – undo
53 53
     {
54 54
         $this->update($id, [
55 55
             'last_heartbeat' => Carbon::now(),
56
-            'memory_usage' => $data['memory_usage'],
57
-            'cpu_usage' => $data['cpu_usage']
56
+            'memory_usage' => $data[ 'memory_usage' ],
57
+            'cpu_usage' => $data[ 'cpu_usage' ]
58 58
         ]);
59 59
     }
60 60
 
Please login to merge, or discard this patch.
src/Foundation/Providers/TelescopeServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     {
19 19
          //Telescope::night();
20 20
 
21
-        Telescope::filter(function (IncomingEntry $entry) {
21
+        Telescope::filter(function(IncomingEntry $entry) {
22 22
             if ($this->app->environment('local')) {
23 23
                 return true;
24 24
             }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     protected function gate()
41 41
     {
42
-        Gate::define('viewTelescope', function ($user) {
42
+        Gate::define('viewTelescope', function($user) {
43 43
             return in_array($user->email, [
44 44
                 //
45 45
             ]);
Please login to merge, or discard this patch.
src/Foundation/Routes/channels.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-Broadcast::channel('user.{id}', function ($user, $id) {
14
+Broadcast::channel('user.{id}', function($user, $id) {
15 15
     return $user->id === (int) $id;
16 16
 });
Please login to merge, or discard this patch.
src/Foundation/Abstracts/Tests/HttpTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -56,32 +56,32 @@
 block discarded – undo
56 56
         }
57 57
 
58 58
         if ($unwrap) {
59
-            return json_decode($content, true)['data'] ?? json_decode($content, true);
59
+            return json_decode($content, true)[ 'data' ] ?? json_decode($content, true);
60 60
         }
61 61
 
62 62
         return json_decode($content, true);
63 63
     }
64 64
 
65
-    protected function http(string $method, string $route, array $payload = [])
65
+    protected function http(string $method, string $route, array $payload = [ ])
66 66
     {
67 67
         return $this->sendRequest($method, $route, $payload, true);
68 68
     }
69 69
 
70
-    private function sendRequest(string $method, string $route, array $payload = [], $authenticated = true): \Illuminate\Foundation\Testing\TestResponse
70
+    private function sendRequest(string $method, string $route, array $payload = [ ], $authenticated = true): \Illuminate\Foundation\Testing\TestResponse
71 71
     {
72
-        return $this->json($method, env('API_URL') . '/' . $route, $payload, $authenticated ? [
73
-            'Authorization' => 'Bearer ' . $this->getAuth0Service()->getTestUserToken()->id_token,
74
-        ] : []);
72
+        return $this->json($method, env('API_URL').'/'.$route, $payload, $authenticated ? [
73
+            'Authorization' => 'Bearer '.$this->getAuth0Service()->getTestUserToken()->id_token,
74
+        ] : [ ]);
75 75
     }
76 76
 
77
-    protected function sendRequestWithToken($token, string $method, string $route, array $payload = [], $authenticated = true): \Illuminate\Foundation\Testing\TestResponse
77
+    protected function sendRequestWithToken($token, string $method, string $route, array $payload = [ ], $authenticated = true): \Illuminate\Foundation\Testing\TestResponse
78 78
     {
79
-        return $this->json($method, env('API_URL') . '/' . $route, $payload, $authenticated ? [
80
-            'Authorization' => 'Bearer ' . $token,
81
-        ] : []);
79
+        return $this->json($method, env('API_URL').'/'.$route, $payload, $authenticated ? [
80
+            'Authorization' => 'Bearer '.$token,
81
+        ] : [ ]);
82 82
     }
83 83
 
84
-    protected function httpNoAuth(string $method, string $route, array $payload = [])
84
+    protected function httpNoAuth(string $method, string $route, array $payload = [ ])
85 85
     {
86 86
         return $this->sendRequest($method, $route, $payload, false);
87 87
     }
Please login to merge, or discard this patch.
src/Foundation/Abstracts/Tests/TestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $this->seedData();
34 34
     }
35 35
 
36
-    protected function seedData(){}
36
+    protected function seedData() {}
37 37
 
38 38
     protected function createUser()
39 39
     {
Please login to merge, or discard this patch.
src/Foundation/Traits/RefreshDatabase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $this->artisan('migrate');
26 26
         $this->artisan('db:seed');
27 27
 
28
-        $this->beforeApplicationDestroyed(function () {
28
+        $this->beforeApplicationDestroyed(function() {
29 29
             $this->artisan('cache:model:clear');
30 30
             $this->artisan('migrate:refresh');
31 31
             $this->artisan('migrate:fresh');
Please login to merge, or discard this patch.