Passed
Push — master ( f51c1b...16736d )
by Arthur
05:36
created
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.