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