| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 1 | public function insertModel(Model $model, $deleteFirst = true) |
|
| 42 | { |
||
| 43 | 1 | $this->index->open(); |
|
| 44 | 1 | $this->model($model); |
|
| 45 | 1 | return $this->insert( |
|
| 46 | 1 | $this->index, |
|
| 47 | 1 | $model->id, |
|
| 48 | 1 | $this->filterFields($model), |
|
| 49 | 1 | $this->uid, |
|
| 50 | 1 | $deleteFirst, |
|
| 51 | 1 | $model::getBoostFields() |
|
| 52 | 1 | ); |
|
| 53 | } |
||
| 54 | |||
| 84 |