| Conditions | 3 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 72 | public function getOptions(): array |
||
| 73 | { |
||
| 74 | return is_object($this->options) && method_exists($this->options, 'map') ? $this->options->map( |
||
| 75 | function ($label, $value) { |
||
| 76 | return [ |
||
| 77 | 'value' => $value, |
||
| 78 | 'label' => $label, |
||
| 79 | ]; |
||
| 80 | } |
||
| 81 | )->values()->toArray() : $this->options; |
||
| 82 | } |
||
| 84 |