Skip to content

Commit 21b0b85

Browse files
tabacituStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent f959441 commit 21b0b85

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/database/migrations/2020_03_31_114745_remove_backpackuser_model.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

33
use Illuminate\Database\Migrations\Migration;
4-
use Illuminate\Database\Schema\Blueprint;
5-
use Illuminate\Support\Facades\Schema;
64
use Illuminate\Support\Facades\DB;
75
use Illuminate\Support\Facades\Log;
86

@@ -31,7 +29,7 @@ public function replaceModels($table_name)
3129
// if you've ended up with duplicate entries (both for App\User and App\Models\BackpackUser)
3230
// we can just delete them
3331
$userEntries = DB::table($table_name)
34-
->where("model_type", "App\User")
32+
->where('model_type', "App\User")
3533
->get();
3634

3735
foreach ($userEntries as $entry) {
@@ -44,9 +42,9 @@ public function replaceModels($table_name)
4442

4543
// for the rest of them, we can just replace the BackpackUser model with User
4644
DB::table($table_name)
47-
->where("model_type", "App\Models\BackpackUser")
45+
->where('model_type', "App\Models\BackpackUser")
4846
->update([
49-
"model_type" => "App\User"
47+
'model_type' => "App\User",
5048
]);
5149
}
5250
}

0 commit comments

Comments
 (0)