@@ -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 | } |
@@ -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 | /** |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | */ |
| 81 | 81 | public function getCreationTimeAttribute(): string |
| 82 | 82 | { |
| 83 | - return date('Y-m-d', strtotime($this->attributes['created_at'])).'T'. |
|
| 83 | + return date('Y-m-d', strtotime($this->attributes['created_at'])) . 'T' . |
|
| 84 | 84 | date('H:i:s.ZZZZ+ZZZZ', strtotime($this->attributes['created_at'])); |
| 85 | 85 | } |
| 86 | 86 | |