| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 1 | public function createDocuments(DocumentListDataProvider $listDataProvider): void |
|
| 32 | { |
||
| 33 | 1 | $documents = $this->getDocumentsFromDataProvider($listDataProvider); |
|
| 34 | |||
| 35 | $type = $this |
||
| 36 | 1 | ->client |
|
| 37 | 1 | ->getIndex($listDataProvider->getIndex()) |
|
| 38 | 1 | ->getType($listDataProvider->getType()); |
|
| 39 | |||
| 40 | 1 | $type->addDocuments($documents); |
|
| 41 | |||
| 42 | 1 | $type->getIndex()->refresh(); |
|
| 43 | 1 | } |
|
| 64 | } |