| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | public function up() |
||
| 8 | { |
||
| 9 | $cards = [ |
||
| 10 | ['name' => 'First Card'] |
||
| 11 | ]; |
||
| 12 | |||
| 13 | $tasks = [ |
||
| 14 | [ |
||
| 15 | 'name' => 'add a new card', |
||
| 16 | 'isDone' => false, |
||
| 17 | 'priority' => 900, |
||
| 18 | 'cardId' => 1, |
||
| 19 | ], |
||
| 20 | [ |
||
| 21 | 'name' => 'add some tasks to the new card', |
||
| 22 | 'isDone' => false, |
||
| 23 | 'priority' => 500, |
||
| 24 | 'cardId' => 1, |
||
| 25 | ], |
||
| 26 | [ |
||
| 27 | 'name' => 'comple all tasks of the new card', |
||
| 28 | 'isDone' => false, |
||
| 29 | 'priority' => 100, |
||
| 30 | 'cardId' => 1, |
||
| 31 | ] |
||
| 32 | ]; |
||
| 33 | |||
| 34 | $this->table('cards')->insert($cards)->save(); |
||
| 35 | $this->table('tasks')->insert($tasks)->save(); |
||
| 36 | } |
||
| 37 | |||
| 44 |
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.