@@ -14,7 +14,7 @@ |
||
14 | 14 | public function register() |
15 | 15 | { |
16 | 16 | // Register Mailing Services |
17 | - $this->app->singleton('mailer', function ($app) { |
|
17 | + $this->app->singleton('mailer', function($app) { |
|
18 | 18 | return $app->loadComponent('mail', 'Illuminate\Mail\MailServiceProvider', 'mailer'); |
19 | 19 | }); |
20 | 20 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function register() |
20 | 20 | { |
21 | - $this->app->bind('chocosession', function () { |
|
21 | + $this->app->bind('chocosession', function() { |
|
22 | 22 | return Session::getInstance(); |
23 | 23 | }); |
24 | 24 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function register() |
20 | 20 | { |
21 | - $this->app->bind('choconux', function () { |
|
21 | + $this->app->bind('choconux', function() { |
|
22 | 22 | return Nux::getInstance(); |
23 | 23 | }); |
24 | 24 | } |
@@ -21,7 +21,6 @@ |
||
21 | 21 | */ |
22 | 22 | public function handle($request, Closure $next) |
23 | 23 | { |
24 | - return Config::get('maintenance.enforce') ? response()->json(['error' => 'maintenance'], 503) : |
|
25 | - $next($request); |
|
24 | + return Config::get('maintenance.enforce') ? response()->json(['error' => 'maintenance'], 503) : $next($request); |
|
26 | 25 | } |
27 | 26 | } |
@@ -167,7 +167,7 @@ |
||
167 | 167 | */ |
168 | 168 | public function getTagsAttribute(): array |
169 | 169 | { |
170 | - return array_filter(explode(';', $this->attributes['tags']), function ($element) { |
|
170 | + return array_filter(explode(';', $this->attributes['tags']), function($element) { |
|
171 | 171 | return !empty($element); |
172 | 172 | }); |
173 | 173 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function register() |
20 | 20 | { |
21 | - $this->app->bind('chocouser', function () { |
|
21 | + $this->app->bind('chocouser', function() { |
|
22 | 22 | return User::getInstance(); |
23 | 23 | }); |
24 | 24 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function register() |
20 | 20 | { |
21 | - $this->app->bind('chocomail', function () { |
|
21 | + $this->app->bind('chocomail', function() { |
|
22 | 22 | return Mail::getInstance(); |
23 | 23 | }); |
24 | 24 | } |
@@ -200,7 +200,7 @@ |
||
200 | 200 | * |
201 | 201 | * @param Request $request |
202 | 202 | * |
203 | - * @return mixed |
|
203 | + * @return JsonResponse |
|
204 | 204 | */ |
205 | 205 | public function confirmChangePassword(Request $request): JsonResponse |
206 | 206 | { |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | { |
346 | 346 | $accountCreated = $this->attributes['account_created'] ?? time(); |
347 | 347 | |
348 | - return date('Y-m-d', $accountCreated).'T'.date('H:i:s.ZZZZ+ZZZZ', $accountCreated); |
|
348 | + return date('Y-m-d', $accountCreated) . 'T' . date('H:i:s.ZZZZ+ZZZZ', $accountCreated); |
|
349 | 349 | } |
350 | 350 | |
351 | 351 | /** |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | { |
358 | 358 | $accountCreated = $this->attributes['account_created'] ?? time(); |
359 | 359 | |
360 | - return date('Y-m-d', $accountCreated).'T'.date('H:i:s.ZZZZ+ZZZZ', $accountCreated); |
|
360 | + return date('Y-m-d', $accountCreated) . 'T' . date('H:i:s.ZZZZ+ZZZZ', $accountCreated); |
|
361 | 361 | } |
362 | 362 | |
363 | 363 | /** |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | { |
380 | 380 | $lastLogin = $this->attributes['last_login'] ?? time(); |
381 | 381 | |
382 | - return date('Y-m-d', $lastLogin).'T'.date('H:i:s.ZZZZ+ZZZZ', $lastLogin); |
|
382 | + return date('Y-m-d', $lastLogin) . 'T' . date('H:i:s.ZZZZ+ZZZZ', $lastLogin); |
|
383 | 383 | } |
384 | 384 | |
385 | 385 | /** |