| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 5 | public function save(Model $model): array |
|
| 24 | { |
||
| 25 | 5 | $this->isModelSearchable($model); |
|
| 26 | |||
| 27 | 5 | return Leopard::indexStatement([ |
|
|
1 ignored issue
–
show
|
|||
| 28 | 5 | 'index' => $model->getDocumentIndex(), |
|
|
1 ignored issue
–
show
|
|||
| 29 | 5 | 'type' => $model->getDocumentType(), |
|
|
1 ignored issue
–
show
|
|||
| 30 | 5 | 'id' => $model->getKey(), |
|
|
1 ignored issue
–
show
|
|||
| 31 | 5 | 'body' => $model->getDocumentData() |
|
|
1 ignored issue
–
show
|
|||
| 32 | ]); |
||
| 140 |