@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | $name = Module::find('core')->name; |
20 | 20 | $requirements = collect(Module::findRequirements('core')); |
21 | - $requirements = $requirements->map(function ($item) { |
|
21 | + $requirements = $requirements->map(function($item) { |
|
22 | 22 | return $item->name; |
23 | 23 | }); |
24 | 24 | $routes = get_routes('core'); |
@@ -8,6 +8,6 @@ |
||
8 | 8 | |
9 | 9 | use Illuminate\Console\Scheduling\Schedule; |
10 | 10 | |
11 | -return function (Schedule $schedule) { |
|
11 | +return function(Schedule $schedule) { |
|
12 | 12 | $schedule->command('telescope:prune')->daily(); |
13 | 13 | }; |
@@ -112,17 +112,17 @@ discard block |
||
112 | 112 | $query->where(function (Builder $query) use ($field, $value) { |
113 | 113 | $query->where(function (Builder $query) use ($field, $value) { |
114 | 114 | $query->where("{$field}_min", '<=', $value[0]) |
115 | - ->where("{$field}_max", '>=', $value[1]); |
|
115 | + ->where("{$field}_max", '>=', $value[1]); |
|
116 | 116 | })->orWhere(function (Builder $query) use ($field, $value) { |
117 | 117 | $query->where("{$field}_min", '<=', $value[0]) |
118 | - ->where("{$field}_max", '>=', $value[0]); |
|
118 | + ->where("{$field}_max", '>=', $value[0]); |
|
119 | 119 | })->orWhere(function (Builder $query) use ($field, $value) { |
120 | 120 | $query->where("{$field}_min", '>=', $value[0]) |
121 | - ->where("{$field}_max", '<=', $value[1]); |
|
121 | + ->where("{$field}_max", '<=', $value[1]); |
|
122 | 122 | })->orWhere(function (Builder $query) use ($field, $value) { |
123 | 123 | $query->where("{$field}_min", '>=', $value[0]) |
124 | - ->where("{$field}_max", '>=', $value[1]) |
|
125 | - ->where("{$field}_min", '<=', $value[1]); |
|
124 | + ->where("{$field}_max", '>=', $value[1]) |
|
125 | + ->where("{$field}_min", '<=', $value[1]); |
|
126 | 126 | }); |
127 | 127 | }); |
128 | 128 | } else { |
@@ -138,17 +138,17 @@ discard block |
||
138 | 138 | $query->where(function (Builder $query) use ($field, $value) { |
139 | 139 | $query->where(function (Builder $query) use ($field, $value) { |
140 | 140 | $query->where("{$field}_min", '<=', $value[0]) |
141 | - ->where("{$field}_max", '>=', $value[1]); |
|
141 | + ->where("{$field}_max", '>=', $value[1]); |
|
142 | 142 | })->orWhere(function (Builder $query) use ($field, $value) { |
143 | 143 | $query->where("{$field}_min", '<=', $value[0]) |
144 | - ->where("{$field}_max", '>=', $value[0]); |
|
144 | + ->where("{$field}_max", '>=', $value[0]); |
|
145 | 145 | })->orWhere(function (Builder $query) use ($field, $value) { |
146 | 146 | $query->where("{$field}_min", '>=', $value[0]) |
147 | - ->where("{$field}_max", '<=', $value[1]); |
|
147 | + ->where("{$field}_max", '<=', $value[1]); |
|
148 | 148 | })->orWhere(function (Builder $query) use ($field, $value) { |
149 | 149 | $query->where("{$field}_min", '>=', $value[0]) |
150 | - ->where("{$field}_max", '>=', $value[1]) |
|
151 | - ->where("{$field}_min", '<=', $value[1]); |
|
150 | + ->where("{$field}_max", '>=', $value[1]) |
|
151 | + ->where("{$field}_min", '<=', $value[1]); |
|
152 | 152 | }); |
153 | 153 | }); |
154 | 154 | } else { |
@@ -173,17 +173,17 @@ discard block |
||
173 | 173 | $query->where(function (Builder $query) use ($field, $value) { |
174 | 174 | $query->where(function (Builder $query) use ($field, $value) { |
175 | 175 | $query->where("{$field}_min", '<=', $value[0]) |
176 | - ->where("{$field}_max", '>=', $value[1]); |
|
176 | + ->where("{$field}_max", '>=', $value[1]); |
|
177 | 177 | })->orWhere(function (Builder $query) use ($field, $value) { |
178 | 178 | $query->where("{$field}_min", '<=', $value[0]) |
179 | - ->where("{$field}_max", '>=', $value[0]); |
|
179 | + ->where("{$field}_max", '>=', $value[0]); |
|
180 | 180 | })->orWhere(function (Builder $query) use ($field, $value) { |
181 | 181 | $query->where("{$field}_min", '>=', $value[0]) |
182 | - ->where("{$field}_max", '<=', $value[1]); |
|
182 | + ->where("{$field}_max", '<=', $value[1]); |
|
183 | 183 | })->orWhere(function (Builder $query) use ($field, $value) { |
184 | 184 | $query->where("{$field}_min", '>=', $value[0]) |
185 | - ->where("{$field}_max", '>=', $value[1]) |
|
186 | - ->where("{$field}_min", '<=', $value[1]); |
|
185 | + ->where("{$field}_max", '>=', $value[1]) |
|
186 | + ->where("{$field}_min", '<=', $value[1]); |
|
187 | 187 | }); |
188 | 188 | }); |
189 | 189 | } else { |
@@ -199,17 +199,17 @@ discard block |
||
199 | 199 | $query->orWhere(function (Builder $query) use ($field, $value) { |
200 | 200 | $query->where(function (Builder $query) use ($field, $value) { |
201 | 201 | $query->where("{$field}_min", '<=', $value[0]) |
202 | - ->where("{$field}_max", '>=', $value[1]); |
|
202 | + ->where("{$field}_max", '>=', $value[1]); |
|
203 | 203 | })->orWhere(function (Builder $query) use ($field, $value) { |
204 | 204 | $query->where("{$field}_min", '<=', $value[0]) |
205 | - ->where("{$field}_max", '>=', $value[0]); |
|
205 | + ->where("{$field}_max", '>=', $value[0]); |
|
206 | 206 | })->orWhere(function (Builder $query) use ($field, $value) { |
207 | 207 | $query->where("{$field}_min", '>=', $value[0]) |
208 | - ->where("{$field}_max", '<=', $value[1]); |
|
208 | + ->where("{$field}_max", '<=', $value[1]); |
|
209 | 209 | })->orWhere(function (Builder $query) use ($field, $value) { |
210 | 210 | $query->where("{$field}_min", '>=', $value[0]) |
211 | - ->where("{$field}_max", '>=', $value[1]) |
|
212 | - ->where("{$field}_min", '<=', $value[1]); |
|
211 | + ->where("{$field}_max", '>=', $value[1]) |
|
212 | + ->where("{$field}_min", '<=', $value[1]); |
|
213 | 213 | }); |
214 | 214 | }); |
215 | 215 | } else { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $modelForceAndWhere = strtolower($searchJoin) === 'and'; |
50 | 50 | |
51 | 51 | $model = |
52 | - $model->where(function ($query) use ( |
|
52 | + $model->where(function($query) use ( |
|
53 | 53 | $fields, |
54 | 54 | $search, |
55 | 55 | $searchData, |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | if ($isFirstField || $modelForceAndWhere) { |
100 | 100 | if (!is_null($value)) { |
101 | 101 | if (!is_null($relation)) { |
102 | - $query->whereHas($relation, function (Builder $query) use ( |
|
102 | + $query->whereHas($relation, function(Builder $query) use ( |
|
103 | 103 | $field, |
104 | 104 | $condition, |
105 | 105 | $value |
@@ -109,17 +109,17 @@ discard block |
||
109 | 109 | } elseif ($condition == 'between') { |
110 | 110 | $query->whereBetween($field, $value); |
111 | 111 | } elseif ($condition == 'cross') { |
112 | - $query->where(function (Builder $query) use ($field, $value) { |
|
113 | - $query->where(function (Builder $query) use ($field, $value) { |
|
112 | + $query->where(function(Builder $query) use ($field, $value) { |
|
113 | + $query->where(function(Builder $query) use ($field, $value) { |
|
114 | 114 | $query->where("{$field}_min", '<=', $value[0]) |
115 | 115 | ->where("{$field}_max", '>=', $value[1]); |
116 | - })->orWhere(function (Builder $query) use ($field, $value) { |
|
116 | + })->orWhere(function(Builder $query) use ($field, $value) { |
|
117 | 117 | $query->where("{$field}_min", '<=', $value[0]) |
118 | 118 | ->where("{$field}_max", '>=', $value[0]); |
119 | - })->orWhere(function (Builder $query) use ($field, $value) { |
|
119 | + })->orWhere(function(Builder $query) use ($field, $value) { |
|
120 | 120 | $query->where("{$field}_min", '>=', $value[0]) |
121 | 121 | ->where("{$field}_max", '<=', $value[1]); |
122 | - })->orWhere(function (Builder $query) use ($field, $value) { |
|
122 | + })->orWhere(function(Builder $query) use ($field, $value) { |
|
123 | 123 | $query->where("{$field}_min", '>=', $value[0]) |
124 | 124 | ->where("{$field}_max", '>=', $value[1]) |
125 | 125 | ->where("{$field}_min", '<=', $value[1]); |
@@ -135,17 +135,17 @@ discard block |
||
135 | 135 | } elseif ($condition == 'between') { |
136 | 136 | $query->whereBetween($field, $value); |
137 | 137 | } elseif ($condition == 'cross') { |
138 | - $query->where(function (Builder $query) use ($field, $value) { |
|
139 | - $query->where(function (Builder $query) use ($field, $value) { |
|
138 | + $query->where(function(Builder $query) use ($field, $value) { |
|
139 | + $query->where(function(Builder $query) use ($field, $value) { |
|
140 | 140 | $query->where("{$field}_min", '<=', $value[0]) |
141 | 141 | ->where("{$field}_max", '>=', $value[1]); |
142 | - })->orWhere(function (Builder $query) use ($field, $value) { |
|
142 | + })->orWhere(function(Builder $query) use ($field, $value) { |
|
143 | 143 | $query->where("{$field}_min", '<=', $value[0]) |
144 | 144 | ->where("{$field}_max", '>=', $value[0]); |
145 | - })->orWhere(function (Builder $query) use ($field, $value) { |
|
145 | + })->orWhere(function(Builder $query) use ($field, $value) { |
|
146 | 146 | $query->where("{$field}_min", '>=', $value[0]) |
147 | 147 | ->where("{$field}_max", '<=', $value[1]); |
148 | - })->orWhere(function (Builder $query) use ($field, $value) { |
|
148 | + })->orWhere(function(Builder $query) use ($field, $value) { |
|
149 | 149 | $query->where("{$field}_min", '>=', $value[0]) |
150 | 150 | ->where("{$field}_max", '>=', $value[1]) |
151 | 151 | ->where("{$field}_min", '<=', $value[1]); |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | } else { |
161 | 161 | if (!is_null($value)) { |
162 | 162 | if (!is_null($relation)) { |
163 | - $query->orWhereHas($relation, function (Builder $query) use ( |
|
163 | + $query->orWhereHas($relation, function(Builder $query) use ( |
|
164 | 164 | $field, |
165 | 165 | $condition, |
166 | 166 | $value |
@@ -170,17 +170,17 @@ discard block |
||
170 | 170 | } elseif ($condition == 'between') { |
171 | 171 | $query->whereBetween($field, $value); |
172 | 172 | } elseif ($condition == 'cross') { |
173 | - $query->where(function (Builder $query) use ($field, $value) { |
|
174 | - $query->where(function (Builder $query) use ($field, $value) { |
|
173 | + $query->where(function(Builder $query) use ($field, $value) { |
|
174 | + $query->where(function(Builder $query) use ($field, $value) { |
|
175 | 175 | $query->where("{$field}_min", '<=', $value[0]) |
176 | 176 | ->where("{$field}_max", '>=', $value[1]); |
177 | - })->orWhere(function (Builder $query) use ($field, $value) { |
|
177 | + })->orWhere(function(Builder $query) use ($field, $value) { |
|
178 | 178 | $query->where("{$field}_min", '<=', $value[0]) |
179 | 179 | ->where("{$field}_max", '>=', $value[0]); |
180 | - })->orWhere(function (Builder $query) use ($field, $value) { |
|
180 | + })->orWhere(function(Builder $query) use ($field, $value) { |
|
181 | 181 | $query->where("{$field}_min", '>=', $value[0]) |
182 | 182 | ->where("{$field}_max", '<=', $value[1]); |
183 | - })->orWhere(function (Builder $query) use ($field, $value) { |
|
183 | + })->orWhere(function(Builder $query) use ($field, $value) { |
|
184 | 184 | $query->where("{$field}_min", '>=', $value[0]) |
185 | 185 | ->where("{$field}_max", '>=', $value[1]) |
186 | 186 | ->where("{$field}_min", '<=', $value[1]); |
@@ -196,17 +196,17 @@ discard block |
||
196 | 196 | } elseif ($condition == 'between') { |
197 | 197 | $query->orWhereBetween($modelTableName.'.'.$field, $value); |
198 | 198 | } elseif ($condition == 'cross') { |
199 | - $query->orWhere(function (Builder $query) use ($field, $value) { |
|
200 | - $query->where(function (Builder $query) use ($field, $value) { |
|
199 | + $query->orWhere(function(Builder $query) use ($field, $value) { |
|
200 | + $query->where(function(Builder $query) use ($field, $value) { |
|
201 | 201 | $query->where("{$field}_min", '<=', $value[0]) |
202 | 202 | ->where("{$field}_max", '>=', $value[1]); |
203 | - })->orWhere(function (Builder $query) use ($field, $value) { |
|
203 | + })->orWhere(function(Builder $query) use ($field, $value) { |
|
204 | 204 | $query->where("{$field}_min", '<=', $value[0]) |
205 | 205 | ->where("{$field}_max", '>=', $value[0]); |
206 | - })->orWhere(function (Builder $query) use ($field, $value) { |
|
206 | + })->orWhere(function(Builder $query) use ($field, $value) { |
|
207 | 207 | $query->where("{$field}_min", '>=', $value[0]) |
208 | 208 | ->where("{$field}_max", '<=', $value[1]); |
209 | - })->orWhere(function (Builder $query) use ($field, $value) { |
|
209 | + })->orWhere(function(Builder $query) use ($field, $value) { |
|
210 | 210 | $query->where("{$field}_min", '>=', $value[0]) |
211 | 211 | ->where("{$field}_max", '>=', $value[1]) |
212 | 212 | ->where("{$field}_min", '<=', $value[1]); |
@@ -579,12 +579,12 @@ |
||
579 | 579 | function get_routes($module = null): Collection |
580 | 580 | { |
581 | 581 | /** @var \Illuminate\Support\Collection $routes */ |
582 | - $routes = collect(Route::getRoutes()->getRoutesByName())->groupBy(function ($item, $key) { |
|
582 | + $routes = collect(Route::getRoutes()->getRoutesByName())->groupBy(function($item, $key) { |
|
583 | 583 | $keys = explode('.', $key); |
584 | 584 | |
585 | 585 | return $keys[0]; |
586 | - }, true)->map(function (Collection $item) { |
|
587 | - return $item->mapWithKeys(function ($item, $key) { |
|
586 | + }, true)->map(function(Collection $item) { |
|
587 | + return $item->mapWithKeys(function($item, $key) { |
|
588 | 588 | $keys = explode('.', $key); |
589 | 589 | $route = collect($item->action) |
590 | 590 | ->put('method', $item->methods[0]) |
@@ -63,7 +63,7 @@ |
||
63 | 63 | } elseif ($exception instanceof UserNotDefinedException) { |
64 | 64 | $response['meta'][self::ERROR_CODE] = JWTErrorCode::USER_NOT_DEFINED; |
65 | 65 | } else { |
66 | - $response['meta'][self::ERROR_CODE] = JWTErrorCode::DEFAULT;; |
|
66 | + $response['meta'][self::ERROR_CODE] = JWTErrorCode::DEFAULT; ; |
|
67 | 67 | } |
68 | 68 | $response['meta'][self::STATUS_CODE] = StatusCodeEnum::HTTP_UNAUTHORIZED; |
69 | 69 | $response['meta'][self::MESSAGE] = $exception->getMessage(); |
@@ -7,8 +7,8 @@ discard block |
||
7 | 7 | { |
8 | 8 | const HTTP_CONTINUE = 100; |
9 | 9 | const HTTP_SWITCHING_PROTOCOLS = 101; |
10 | - const HTTP_PROCESSING = 102; // RFC2518 |
|
11 | - const HTTP_EARLY_HINTS = 103; // RFC8297 |
|
10 | + const HTTP_PROCESSING = 102; // RFC2518 |
|
11 | + const HTTP_EARLY_HINTS = 103; // RFC8297 |
|
12 | 12 | const HTTP_OK = 200; |
13 | 13 | const HTTP_CREATED = 201; |
14 | 14 | const HTTP_ACCEPTED = 202; |
@@ -16,9 +16,9 @@ discard block |
||
16 | 16 | const HTTP_NO_CONTENT = 204; |
17 | 17 | const HTTP_RESET_CONTENT = 205; |
18 | 18 | const HTTP_PARTIAL_CONTENT = 206; |
19 | - const HTTP_MULTI_STATUS = 207; // RFC4918 |
|
20 | - const HTTP_ALREADY_REPORTED = 208; // RFC5842 |
|
21 | - const HTTP_IM_USED = 226; // RFC3229 |
|
19 | + const HTTP_MULTI_STATUS = 207; // RFC4918 |
|
20 | + const HTTP_ALREADY_REPORTED = 208; // RFC5842 |
|
21 | + const HTTP_IM_USED = 226; // RFC3229 |
|
22 | 22 | const HTTP_MULTIPLE_CHOICES = 300; |
23 | 23 | const HTTP_MOVED_PERMANENTLY = 301; |
24 | 24 | const HTTP_FOUND = 302; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | const HTTP_USE_PROXY = 305; |
28 | 28 | const HTTP_RESERVED = 306; |
29 | 29 | const HTTP_TEMPORARY_REDIRECT = 307; |
30 | - const HTTP_PERMANENTLY_REDIRECT = 308; // RFC7238 |
|
30 | + const HTTP_PERMANENTLY_REDIRECT = 308; // RFC7238 |
|
31 | 31 | const HTTP_BAD_REQUEST = 400; |
32 | 32 | const HTTP_UNAUTHORIZED = 401; |
33 | 33 | const HTTP_PAYMENT_REQUIRED = 402; |
@@ -46,21 +46,21 @@ discard block |
||
46 | 46 | const HTTP_UNSUPPORTED_MEDIA_TYPE = 415; |
47 | 47 | const HTTP_REQUESTED_RANGE_NOT_SATISFIABLE = 416; |
48 | 48 | const HTTP_EXPECTATION_FAILED = 417; |
49 | - const HTTP_I_AM_A_TEAPOT = 418; // RFC2324 |
|
50 | - const HTTP_MISDIRECTED_REQUEST = 421; // RFC7540 |
|
51 | - const HTTP_UNPROCESSABLE_ENTITY = 422; // RFC4918 |
|
52 | - const HTTP_LOCKED = 423; // RFC4918 |
|
53 | - const HTTP_FAILED_DEPENDENCY = 424; // RFC4918 |
|
49 | + const HTTP_I_AM_A_TEAPOT = 418; // RFC2324 |
|
50 | + const HTTP_MISDIRECTED_REQUEST = 421; // RFC7540 |
|
51 | + const HTTP_UNPROCESSABLE_ENTITY = 422; // RFC4918 |
|
52 | + const HTTP_LOCKED = 423; // RFC4918 |
|
53 | + const HTTP_FAILED_DEPENDENCY = 424; // RFC4918 |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * @deprecated |
57 | 57 | */ |
58 | - const HTTP_RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL = 425; // RFC2817 |
|
59 | - const HTTP_TOO_EARLY = 425; // RFC-ietf-httpbis-replay-04 |
|
60 | - const HTTP_UPGRADE_REQUIRED = 426; // RFC2817 |
|
61 | - const HTTP_PRECONDITION_REQUIRED = 428; // RFC6585 |
|
62 | - const HTTP_TOO_MANY_REQUESTS = 429; // RFC6585 |
|
63 | - const HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE = 431; // RFC6585 |
|
58 | + const HTTP_RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL = 425; // RFC2817 |
|
59 | + const HTTP_TOO_EARLY = 425; // RFC-ietf-httpbis-replay-04 |
|
60 | + const HTTP_UPGRADE_REQUIRED = 426; // RFC2817 |
|
61 | + const HTTP_PRECONDITION_REQUIRED = 428; // RFC6585 |
|
62 | + const HTTP_TOO_MANY_REQUESTS = 429; // RFC6585 |
|
63 | + const HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE = 431; // RFC6585 |
|
64 | 64 | const HTTP_UNAVAILABLE_FOR_LEGAL_REASONS = 451; |
65 | 65 | const HTTP_INTERNAL_SERVER_ERROR = 500; |
66 | 66 | const HTTP_NOT_IMPLEMENTED = 501; |
@@ -68,11 +68,11 @@ discard block |
||
68 | 68 | const HTTP_SERVICE_UNAVAILABLE = 503; |
69 | 69 | const HTTP_GATEWAY_TIMEOUT = 504; |
70 | 70 | const HTTP_VERSION_NOT_SUPPORTED = 505; |
71 | - const HTTP_VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL = 506; // RFC2295 |
|
72 | - const HTTP_INSUFFICIENT_STORAGE = 507; // RFC4918 |
|
73 | - const HTTP_LOOP_DETECTED = 508; // RFC5842 |
|
74 | - const HTTP_NOT_EXTENDED = 510; // RFC2774 |
|
75 | - const HTTP_NETWORK_AUTHENTICATION_REQUIRED = 511; // RFC6585 |
|
71 | + const HTTP_VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL = 506; // RFC2295 |
|
72 | + const HTTP_INSUFFICIENT_STORAGE = 507; // RFC4918 |
|
73 | + const HTTP_LOOP_DETECTED = 508; // RFC5842 |
|
74 | + const HTTP_NOT_EXTENDED = 510; // RFC2774 |
|
75 | + const HTTP_NETWORK_AUTHENTICATION_REQUIRED = 511; // RFC6585 |
|
76 | 76 | |
77 | 77 | protected const __ = [ |
78 | 78 | self::HTTP_CONTINUE => 'continue', |
@@ -60,8 +60,8 @@ discard block |
||
60 | 60 | protected function mapWebRoutes() |
61 | 61 | { |
62 | 62 | Route::middleware('web') |
63 | - ->namespace($this->namespace) |
|
64 | - ->group(__DIR__.'/../Routes/web.php'); |
|
63 | + ->namespace($this->namespace) |
|
64 | + ->group(__DIR__.'/../Routes/web.php'); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
@@ -74,9 +74,9 @@ discard block |
||
74 | 74 | protected function mapApiRoutes() |
75 | 75 | { |
76 | 76 | Route::prefix('api') |
77 | - ->middleware('api') |
|
78 | - ->namespace($this->namespace) |
|
79 | - ->group(__DIR__.'/../Routes/api.php'); |
|
77 | + ->middleware('api') |
|
78 | + ->namespace($this->namespace) |
|
79 | + ->group(__DIR__.'/../Routes/api.php'); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | |
21 | 21 | $this->hideSensitiveRequestDetails(); |
22 | 22 | |
23 | - Telescope::filter(function (IncomingEntry $entry) { |
|
23 | + Telescope::filter(function(IncomingEntry $entry) { |
|
24 | 24 | if ($this->app->isLocal()) { |
25 | 25 | return true; |
26 | 26 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | protected function gate() |
63 | 63 | { |
64 | - Gate::define('viewTelescope', function ($user) { |
|
64 | + Gate::define('viewTelescope', function($user) { |
|
65 | 65 | return in_array($user->email, [ |
66 | 66 | // |
67 | 67 | ]); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | public function register() |
23 | 23 | { |
24 | - $this->app->singleton(Filter::class, function () { |
|
24 | + $this->app->singleton(Filter::class, function() { |
|
25 | 25 | return new Filter(); |
26 | 26 | }); |
27 | 27 | } |