| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 12 | public function run() |
||
| 13 | { |
||
| 14 | \DB::table('makes')->delete(); |
||
| 15 | |||
| 16 | \DB::table('makes')->insert([ |
||
| 17 | 0 => [ |
||
| 18 | 'id' => 1, |
||
| 19 | 'name' => 'Electric Guitars', |
||
| 20 | 'deleted_at' => null, |
||
| 21 | ], |
||
| 22 | 1 => [ |
||
| 23 | 'id' => 2, |
||
| 24 | 'name' => 'Acoustic Guitar', |
||
| 25 | 'deleted_at' => null, |
||
| 26 | ], |
||
| 27 | ]); |
||
| 28 | } |
||
| 29 | } |
||
| 30 |
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.