| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 68 | 10 | public function getDocumentIndex() : string |
|
| 69 | { |
||
| 70 | 10 | if ($this->index) { |
|
| 71 | 2 | return $this->index; |
|
| 72 | } |
||
| 73 | |||
| 74 | 9 | return $this->model->getDocumentIndex() ?: Leopard::getEsDefaultIndex(); |
|
|
1 ignored issue
–
show
|
|||
| 75 | } |
||
| 87 |