| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 1 | public function updateType(string $type) |
|
| 30 | { |
||
| 31 | 1 | $this->elasticApi->createIndex('tmp'.$this->index); |
|
| 32 | 1 | $this->elasticApi->reindex($this->index, 'tmp'.$this->index); |
|
| 33 | 1 | $this->elasticApi->removeIndex($this->index); |
|
| 34 | 1 | $this->createIndex(); |
|
| 35 | 1 | $this->createType($type); |
|
| 36 | 1 | $this->elasticApi->reindex('tmp'.$this->index, $this->index); |
|
| 37 | 1 | $this->elasticApi->removeIndex('tmp'.$this->index); |
|
| 38 | 1 | } |
|
| 39 | } |
||
| 40 |