@@ -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 | } |
@@ -1,24 +1,24 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -namespace App\Providers; |
|
| 3 | + namespace App\Providers; |
|
| 4 | 4 | |
| 5 | -use Illuminate\Support\ServiceProvider; |
|
| 5 | + use Illuminate\Support\ServiceProvider; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Class AppServiceProvider. |
| 9 | 9 | */ |
| 10 | -class AppServiceProvider extends ServiceProvider |
|
| 11 | -{ |
|
| 12 | - /** |
|
| 10 | + class AppServiceProvider extends ServiceProvider |
|
| 11 | + { |
|
| 12 | + /** |
|
| 13 | 13 | * Register any application services. |
| 14 | 14 | * |
| 15 | 15 | * @return void |
| 16 | 16 | */ |
| 17 | - public function register() |
|
| 18 | - { |
|
| 19 | - // Register Mailing Services |
|
| 20 | - $this->app->singleton('mailer', function ($app) { |
|
| 21 | - return $app->loadComponent('mail', 'Illuminate\Mail\MailServiceProvider', 'mailer'); |
|
| 22 | - }); |
|
| 23 | - } |
|
| 17 | + public function register() |
|
| 18 | + { |
|
| 19 | + // Register Mailing Services |
|
| 20 | + $this->app->singleton('mailer', function ($app) { |
|
| 21 | + return $app->loadComponent('mail', 'Illuminate\Mail\MailServiceProvider', 'mailer'); |
|
| 22 | + }); |
|
| 23 | + } |
|
| 24 | 24 | } |
@@ -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 | |
@@ -1,26 +1,26 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -namespace App\Providers; |
|
| 3 | + namespace App\Providers; |
|
| 4 | 4 | |
| 5 | -use App\Helpers\Session; |
|
| 6 | -use Illuminate\Support\ServiceProvider; |
|
| 5 | + use App\Helpers\Session; |
|
| 6 | + use Illuminate\Support\ServiceProvider; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Class SessionServiceProvider. |
| 10 | 10 | */ |
| 11 | -class SessionServiceProvider extends ServiceProvider |
|
| 12 | -{ |
|
| 13 | - /** |
|
| 11 | + class SessionServiceProvider extends ServiceProvider |
|
| 12 | + { |
|
| 13 | + /** |
|
| 14 | 14 | * Register the Session Service Provider. |
| 15 | 15 | * |
| 16 | 16 | * @return void |
| 17 | 17 | */ |
| 18 | - public function register() |
|
| 19 | - { |
|
| 20 | - $this->app->bind('chocosession', function () { |
|
| 21 | - return Session::getInstance(); |
|
| 22 | - }); |
|
| 18 | + public function register() |
|
| 19 | + { |
|
| 20 | + $this->app->bind('chocosession', function () { |
|
| 21 | + return Session::getInstance(); |
|
| 22 | + }); |
|
| 23 | 23 | |
| 24 | - Session::getInstance()->start(); |
|
| 25 | - } |
|
| 24 | + Session::getInstance()->start(); |
|
| 25 | + } |
|
| 26 | 26 | } |
@@ -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 | } |
@@ -1,24 +1,24 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -namespace App\Providers; |
|
| 3 | + namespace App\Providers; |
|
| 4 | 4 | |
| 5 | -use App\Helpers\Nux; |
|
| 6 | -use Illuminate\Support\ServiceProvider; |
|
| 5 | + use App\Helpers\Nux; |
|
| 6 | + use Illuminate\Support\ServiceProvider; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Class NuxServiceProvider. |
| 10 | 10 | */ |
| 11 | -class NuxServiceProvider extends ServiceProvider |
|
| 12 | -{ |
|
| 13 | - /** |
|
| 11 | + class NuxServiceProvider extends ServiceProvider |
|
| 12 | + { |
|
| 13 | + /** |
|
| 14 | 14 | * Register the Session Service Provider. |
| 15 | 15 | * |
| 16 | 16 | * @return void |
| 17 | 17 | */ |
| 18 | - public function register() |
|
| 19 | - { |
|
| 20 | - $this->app->bind('choconux', function () { |
|
| 21 | - return Nux::getInstance(); |
|
| 22 | - }); |
|
| 23 | - } |
|
| 18 | + public function register() |
|
| 19 | + { |
|
| 20 | + $this->app->bind('choconux', function () { |
|
| 21 | + return Nux::getInstance(); |
|
| 22 | + }); |
|
| 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 | } |
@@ -1,24 +1,24 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -namespace App\Providers; |
|
| 3 | + namespace App\Providers; |
|
| 4 | 4 | |
| 5 | -use App\Helpers\User; |
|
| 6 | -use Illuminate\Support\ServiceProvider; |
|
| 5 | + use App\Helpers\User; |
|
| 6 | + use Illuminate\Support\ServiceProvider; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Class UserServiceProvider. |
| 10 | 10 | */ |
| 11 | -class UserServiceProvider extends ServiceProvider |
|
| 12 | -{ |
|
| 13 | - /** |
|
| 11 | + class UserServiceProvider extends ServiceProvider |
|
| 12 | + { |
|
| 13 | + /** |
|
| 14 | 14 | * Register the Session Service Provider. |
| 15 | 15 | * |
| 16 | 16 | * @return void |
| 17 | 17 | */ |
| 18 | - public function register() |
|
| 19 | - { |
|
| 20 | - $this->app->bind('chocouser', function () { |
|
| 21 | - return User::getInstance(); |
|
| 22 | - }); |
|
| 23 | - } |
|
| 18 | + public function register() |
|
| 19 | + { |
|
| 20 | + $this->app->bind('chocouser', function () { |
|
| 21 | + return User::getInstance(); |
|
| 22 | + }); |
|
| 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 | } |
@@ -1,24 +1,24 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -namespace App\Providers; |
|
| 3 | + namespace App\Providers; |
|
| 4 | 4 | |
| 5 | -use App\Helpers\Mail; |
|
| 6 | -use Illuminate\Support\ServiceProvider; |
|
| 5 | + use App\Helpers\Mail; |
|
| 6 | + use Illuminate\Support\ServiceProvider; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Class MailServiceProvider. |
| 10 | 10 | */ |
| 11 | -class MailServiceProvider extends ServiceProvider |
|
| 12 | -{ |
|
| 13 | - /** |
|
| 11 | + class MailServiceProvider extends ServiceProvider |
|
| 12 | + { |
|
| 13 | + /** |
|
| 14 | 14 | * Register the Session Service Provider. |
| 15 | 15 | * |
| 16 | 16 | * @return void |
| 17 | 17 | */ |
| 18 | - public function register() |
|
| 19 | - { |
|
| 20 | - $this->app->bind('chocomail', function () { |
|
| 21 | - return Mail::getInstance(); |
|
| 22 | - }); |
|
| 23 | - } |
|
| 18 | + public function register() |
|
| 19 | + { |
|
| 20 | + $this->app->bind('chocomail', function () { |
|
| 21 | + return Mail::getInstance(); |
|
| 22 | + }); |
|
| 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 | /** |