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