| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 18 | 
| Code Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 35 | public function change() | ||
| 36 |     { | ||
| 37 |         $table = $this->table('contact_us'); | ||
| 38 | $table | ||
| 39 |             ->addColumn('userId', 'integer') | ||
| 40 |             ->addColumn('name', 'string', ['length' => 255]) | ||
| 41 |             ->addColumn('email', 'string', ['length' => 255]) | ||
| 42 |             ->addColumn('subject', 'string', ['length' => 255]) | ||
| 43 |             ->addColumn('message', 'text') | ||
| 44 |             ->addColumn('markRead', 'boolean') | ||
| 45 |             ->addColumn('markAnswered', 'boolean') | ||
| 46 |             ->addTimestamps('created', 'updated') | ||
| 47 |             ->addForeignKey('userId', 'users', 'id', [ | ||
| 48 | 'delete' => 'CASCADE', | ||
| 49 | 'update' => 'CASCADE' | ||
| 50 | ]) | ||
| 51 | ->create(); | ||
| 52 | } | ||
| 53 | } | ||
| 54 | 
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.