From dfcc7ab3db76aea3a5ed01beedc282a3ff3a8486 Mon Sep 17 00:00:00 2001 From: cholladay0816 Date: Thu, 24 Aug 2023 05:38:59 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- app/Http/Livewire/Onboarding/Index.php | 6 ++++-- app/Http/Livewire/Profile/PaymentDetails.php | 5 ++--- app/Http/Livewire/Profile/Stripe.php | 3 +-- app/Http/Middleware/OnboardingMiddleware.php | 3 +-- ...023_08_24_044812_add_onboarded_column_to_users_table.php | 3 +-- 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/app/Http/Livewire/Onboarding/Index.php b/app/Http/Livewire/Onboarding/Index.php index aa159f00..ab08e13b 100644 --- a/app/Http/Livewire/Onboarding/Index.php +++ b/app/Http/Livewire/Onboarding/Index.php @@ -18,12 +18,14 @@ class Index extends Component public ?Creator $creator; - public function mount() { + public function mount() + { $this->form['account_type'] = Session::get('account_type'); $this->refresh(); } - public function updatedForm($value, $key){ + public function updatedForm($value, $key) + { Session::put($key, $value); } diff --git a/app/Http/Livewire/Profile/PaymentDetails.php b/app/Http/Livewire/Profile/PaymentDetails.php index f325c9ac..a28e3317 100644 --- a/app/Http/Livewire/Profile/PaymentDetails.php +++ b/app/Http/Livewire/Profile/PaymentDetails.php @@ -9,9 +9,8 @@ class PaymentDetails extends Component public string|null $redirect = null; public function mount() { - if(is_null($this->redirect)) - { - $this->redirect = route('profile.show'); + if(is_null($this->redirect)) { + $this->redirect = route('profile.show'); } } public function render() diff --git a/app/Http/Livewire/Profile/Stripe.php b/app/Http/Livewire/Profile/Stripe.php index 5fae4dc1..886c9e64 100644 --- a/app/Http/Livewire/Profile/Stripe.php +++ b/app/Http/Livewire/Profile/Stripe.php @@ -12,8 +12,7 @@ class Stripe extends Component public function mount() { - if(is_null($this->redirect)) - { + if(is_null($this->redirect)) { $this->redirect = route('profile.show'); } } diff --git a/app/Http/Middleware/OnboardingMiddleware.php b/app/Http/Middleware/OnboardingMiddleware.php index 13f0e3f9..34feb8c3 100644 --- a/app/Http/Middleware/OnboardingMiddleware.php +++ b/app/Http/Middleware/OnboardingMiddleware.php @@ -16,8 +16,7 @@ class OnboardingMiddleware */ public function handle(Request $request, Closure $next) { - if(!auth()->user()->onboarded_at) - { + if(!auth()->user()->onboarded_at) { return redirect()->route('onboarding'); } return $next($request); diff --git a/database/migrations/2023_08_24_044812_add_onboarded_column_to_users_table.php b/database/migrations/2023_08_24_044812_add_onboarded_column_to_users_table.php index 19ef95de..35978078 100644 --- a/database/migrations/2023_08_24_044812_add_onboarded_column_to_users_table.php +++ b/database/migrations/2023_08_24_044812_add_onboarded_column_to_users_table.php @@ -4,8 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration -{ +return new class () extends Migration { /** * Run the migrations. *