| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | public function setBody($params = null) |
||
| 23 | { |
||
| 24 | if (isset($this->index)) { |
||
| 25 | return parent::setBody(['query' => "OPTIMIZE INDEX ".$this->index. "". |
||
| 26 | (isset($params['sync'])?" OPTION sync='".$params['sync']."'":"")]); |
||
| 27 | } |
||
| 28 | throw new RuntimeException('Index name is missing.'); |
||
| 29 | } |
||
| 46 |