| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function change() |
||
| 37 | { |
||
| 38 | $table = $this->table('test'); |
||
| 39 | $table |
||
| 40 | ->addColumn('name', 'string', ['length' => 255]) |
||
| 41 | ->addColumn('email', 'string', ['length' => 255, 'null' => true]) |
||
| 42 | ->addColumn('status', 'enum', ['values' => ['active', 'disable', 'delete']]) |
||
| 43 | ->addTimestamps('created', 'updated') |
||
| 44 | ->create(); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
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.