Skip to content

Commit

Permalink
Merge pull request #1034 from uasoft-indonesia/analysis-e02oYa
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
miftahurrahmi authored Sep 25, 2023
2 parents e2cadde + 01c655b commit 4209bc4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions src/Controllers/BadasoAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
16 changes: 8 additions & 8 deletions src/Controllers/BadasoUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
}
Expand All @@ -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');
});
}
Expand Down

0 comments on commit 4209bc4

Please sign in to comment.