Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 14 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
18 | View Code Duplication | public function run() |
|
19 | { |
||
20 | $managerTable = $this->managerModel->getTable(); |
||
21 | if ($managerTable != 'users') { |
||
22 | DB::table($managerTable)->insert([ |
||
23 | 'id' => 1, |
||
24 | 'name' => 'admin', |
||
25 | 'email' => '[email protected]', |
||
26 | 'password' => bcrypt('123456'), |
||
27 | 'created_at' => Carbon::now(), |
||
28 | 'updated_at' => Carbon::now(), |
||
29 | ]); |
||
30 | } |
||
31 | } |
||
32 | } |
||
33 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.