@@ -18,7 +18,7 @@ discard block |
||
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 |
||
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 | ]); |
@@ -11,6 +11,6 @@ |
||
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 | }); |
@@ -56,32 +56,32 @@ |
||
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 | } |
@@ -33,7 +33,7 @@ |
||
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 | { |
@@ -25,7 +25,7 @@ |
||
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'); |