Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
43 | 1 | public function update(Model $model): array |
|
44 | { |
||
45 | 1 | $this->isModelSearchable($model); |
|
46 | |||
47 | 1 | return Leopard::updateStatement([ |
|
1 ignored issue
–
show
|
|||
48 | 1 | 'index' => $model->getDocumentIndex(), |
|
1 ignored issue
–
show
|
|||
49 | 1 | 'type' => $model->getDocumentType(), |
|
1 ignored issue
–
show
|
|||
50 | 1 | 'id' => $model->getKey(), |
|
1 ignored issue
–
show
|
|||
51 | 'body' => [ |
||
1 ignored issue
–
show
|
|||
52 | 1 | 'doc' => $model->getDocumentData() |
|
53 | ] |
||
140 |