| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| 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 | 'quiz_id' => 1, |
||
| 19 | 'question' => 'Which one of these isn\'t a data structure?' |
||
| 20 | ], |
||
| 21 | [ |
||
| 22 | 'quiz_id' => 2, |
||
| 23 | 'question' => 'Which one of the following is a set of natural numbers?' |
||
| 24 | ], |
||
| 25 | [ |
||
| 26 | 'quiz_id' => 3, |
||
| 27 | 'question' => 'Which one of the following is a colour of the rainbow?' |
||
| 28 | ] |
||
| 32 |
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.