| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 66 | 1 | public function index($id, array $body) |
|
| 67 | { |
||
| 68 | 1 | $this->client->index([ |
|
| 69 | 1 | 'index' => $this->index, |
|
| 70 | 1 | 'type' => $this->type, |
|
| 71 | 1 | 'id' => $id, |
|
| 72 | 1 | 'body' => $body, |
|
| 73 | 1 | ]); |
|
| 74 | |||
| 75 | 1 | $this->dispatcher->dispatch( |
|
| 76 | 1 | 'elasticsearch.has_indexed_document', |
|
| 77 | 1 | new HasIndexedDocument($id) |
|
| 78 | 1 | ); |
|
| 79 | 1 | } |
|
| 80 | |||
| 89 |