| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function run() |
||
| 14 | { |
||
| 15 | DB::table($this->table)->truncate(); |
||
| 16 | DB::table($this->table)->insert([ |
||
| 17 | [ |
||
| 18 | 'user_id' => 1, |
||
| 19 | 'age' => '18', |
||
| 20 | 'location' => 'Portsmouth, UK', |
||
| 21 | 'bio' => 'Enthusiastic learner with a love for NoBrainer!!', |
||
| 22 | 'created_at' => date('Y-m-d H:i:s'), |
||
| 23 | 'updated_at' => date('Y-m-d H:i:s') |
||
| 24 | ], |
||
| 25 | [ |
||
| 26 | 'user_id' => 2, |
||
| 27 | 'age' => '19', |
||
| 28 | 'location' => 'Brighton, UK', |
||
| 29 | 'bio' => 'I do love a good programmer <3 <3 <3', |
||
| 30 | 'created_at' => date('Y-m-d H:i:s'), |
||
| 31 | 'updated_at' => date('Y-m-d H:i:s') |
||
| 32 | ] |
||
| 36 |
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.