From 01c655bd464e56dc5917f3905f6494e8e968fc6e Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Mon, 25 Sep 2023 03:27:49 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Controllers/BadasoAuthController.php | 10 +++++----- src/Controllers/BadasoUserController.php | 16 ++++++++-------- ..._021749_add_address_to_badaso_users_table.php | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Controllers/BadasoAuthController.php b/src/Controllers/BadasoAuthController.php index cff7a419..4667707b 100644 --- a/src/Controllers/BadasoAuthController.php +++ b/src/Controllers/BadasoAuthController.php @@ -530,11 +530,11 @@ public function updateProfile(Request $request) $user = User::find($user->id); - $user->name = $request->name; - $user->username = $request->username; - $user->phone = $request->phone; - $user->address = $request->address; - $user->avatar = $request->avatar; + $user->name = $request->name; + $user->username = $request->username; + $user->phone = $request->phone; + $user->address = $request->address; + $user->avatar = $request->avatar; $user->additional_info = $request->additional_info; $user->save(); diff --git a/src/Controllers/BadasoUserController.php b/src/Controllers/BadasoUserController.php index 89a8bd6d..be2d614d 100644 --- a/src/Controllers/BadasoUserController.php +++ b/src/Controllers/BadasoUserController.php @@ -113,15 +113,15 @@ public function add(Request $request) 'address' => 'nullable', ]); - $user = new User(); - $user->name = $request->name; - $user->username = $request->username; - $user->phone = $request->phone; - $user->address = $request->address; - $user->email = $request->email; - $user->avatar = $request->avatar; + $user = new User(); + $user->name = $request->name; + $user->username = $request->username; + $user->phone = $request->phone; + $user->address = $request->address; + $user->email = $request->email; + $user->avatar = $request->avatar; $user->additional_info = $request->additional_info; - $user->password = Hash::make($request->password); + $user->password = Hash::make($request->password); if ($request->email_verified) { $user->email_verified_at = date('Y-m-d H:i:s'); } diff --git a/src/Migrations/2023_09_25_021749_add_address_to_badaso_users_table.php b/src/Migrations/2023_09_25_021749_add_address_to_badaso_users_table.php index ca1f9369..6effee1f 100644 --- a/src/Migrations/2023_09_25_021749_add_address_to_badaso_users_table.php +++ b/src/Migrations/2023_09_25_021749_add_address_to_badaso_users_table.php @@ -13,7 +13,7 @@ class AddAddressToBadasoUsersTable extends Migration */ public function up() { - Schema::table(config('badaso.database.prefix') . 'users', function (Blueprint $table) { + Schema::table(config('badaso.database.prefix').'users', function (Blueprint $table) { $table->text('address')->nullable()->after('phone'); }); } @@ -25,7 +25,7 @@ public function up() */ public function down() { - Schema::table(config('badaso.database.prefix') . 'users', function (Blueprint $table) { + Schema::table(config('badaso.database.prefix').'users', function (Blueprint $table) { $table->dropColumn('address'); }); }