Passed
Push — master ( 07db06...18d1ff )
by Arthur
77:33 queued 63:38
created
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/Cacheable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         return static::$caching;
29 29
     }
30 30
 
31
-    public static function find($id, $columns = ['*'])
31
+    public static function find($id, $columns = [ '*' ])
32 32
     {
33 33
         if (static::cache()->enabled()) {
34 34
             $model = static::cache()->find($id) ?? static::recache($id);
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         return $model;
46 46
     }
47 47
 
48
-    public static function findWithoutCache($id, $columns = ['*'])
48
+    public static function findWithoutCache($id, $columns = [ '*' ])
49 49
     {
50 50
         $model = new static();
51 51
         if (is_array($id) || $id instanceof Arrayable) {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         if ($model === null)
61 61
             return null;
62 62
 
63
-        if ($columns !== ['*']) {
63
+        if ($columns !== [ '*' ]) {
64 64
             return collect($model)->first($columns);
65 65
         }
66 66
 
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
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $this->artisan('cache:model:clear');
23 23
         $this->artisan('migrate:refresh');
24 24
         $this->artisan('db:seed');
25
-        $this->beforeApplicationDestroyed(function () {
25
+        $this->beforeApplicationDestroyed(function() {
26 26
             RefreshDatabaseState::$migrated = false;
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
src/Foundation/Cache/ModelCacheOOP.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     protected function eagerLoadRelations($model)
63 63
     {
64 64
         if ($model !== null)
65
-            return $model::eagerLoadRelations(array($model))[0];
65
+            return $model::eagerLoadRelations(array($model))[ 0 ];
66 66
         return null;
67 67
     }
68 68
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function getCacheName($id, string $index = 'id')
78 78
     {
79
-        return config('model.cache_prefix') . ':' . strtolower(get_short_class_name($this->model)) . ':' . $index . ':' . $id;
79
+        return config('model.cache_prefix').':'.strtolower(get_short_class_name($this->model)).':'.$index.':'.$id;
80 80
     }
81 81
 
82 82
     /**
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     private static function deleteWithPrefix($prefix)
135 135
     {
136 136
         $redis = self::getCacheConnection();
137
-        $keyPattern = Cache::getPrefix() . $prefix . '*';
137
+        $keyPattern = Cache::getPrefix().$prefix.'*';
138 138
         $keys = $redis->keys($keyPattern);
139 139
         $redis->delete($keys);
140 140
     }
@@ -160,12 +160,12 @@  discard block
 block discarded – undo
160 160
      */
161 161
     public function clearModelCache()
162 162
     {
163
-        $pattern = config('model.cache_prefix') . ':' . strtolower(get_short_class_name($this->model));
163
+        $pattern = config('model.cache_prefix').':'.strtolower(get_short_class_name($this->model));
164 164
         self::deleteWithPrefix($pattern);
165 165
     }
166 166
 
167 167
     public function enabled(): bool
168 168
     {
169
-        return (bool)config('model.caching');
169
+        return (bool) config('model.caching');
170 170
     }
171 171
 }
Please login to merge, or discard this patch.
src/Foundation/Providers/AppServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $this->app->register(\Foundation\Providers\TelescopeServiceProvider::class);
39 39
     }
40 40
 
41
-    private function registerNonTestingPackages(){
41
+    private function registerNonTestingPackages() {
42 42
         $this->app->register(\Laravel\Horizon\HorizonServiceProvider::class);
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
src/Foundation/Providers/TelescopeServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
         $this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
21 21
          //Telescope::night();
22 22
 
23
-        Telescope::filter(function (IncomingEntry $entry) {
23
+        Telescope::filter(function(IncomingEntry $entry) {
24 24
 
25 25
             if ($entry->type === EntryType::REQUEST
26
-                && isset($entry->content['uri'])
27
-                && str_contains($entry->content['uri'], 'horizon')) {
26
+                && isset($entry->content[ 'uri' ])
27
+                && str_contains($entry->content[ 'uri' ], 'horizon')) {
28 28
                 return false;
29 29
             }
30 30
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     protected function gate()
50 50
     {
51
-        Gate::define('viewTelescope', function ($user) {
51
+        Gate::define('viewTelescope', function($user) {
52 52
             return in_array($user->email, [
53 53
                 //
54 54
             ]);
Please login to merge, or discard this patch.
src/Foundation/Abstracts/Transformers/TransformerCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
 {
16 16
     public function serialize()
17 17
     {
18
-        return json_decode(json_encode($this->jsonSerialize()),true);
18
+        return json_decode(json_encode($this->jsonSerialize()), true);
19 19
     }
20 20
 }
Please login to merge, or discard this patch.