| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 12 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | View Code Duplication | public function down() |
|
| 39 | { |
||
| 40 | /* @var \Anomaly\Streams\Platform\Field\Contract\FieldInterface $field */ |
||
| 41 | $field = $this->fields()->findBySlugAndNamespace('user', 'preferences'); |
||
| 42 | |||
| 43 | $field->config = [ |
||
| 44 | 'mode' => 'lookup', |
||
| 45 | 'relation' => 'Anomaly\UsersModule\User\UserModel', |
||
| 46 | ]; |
||
| 47 | |||
| 48 | $field->save(); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
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.