| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | class Select extends InputGroupComponent |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Create a new component instance. |
||
| 9 | * |
||
| 10 | * @return void |
||
| 11 | */ |
||
| 12 | 2 | public function __construct( |
|
| 18 | ); |
||
| 19 | 2 | } |
|
| 20 | |||
| 21 | /** |
||
| 22 | * Make the class attribute for the input group item. |
||
| 23 | * |
||
| 24 | * @param string $invalid |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | 1 | public function makeItemClass($invalid) |
|
| 28 | { |
||
| 29 | 1 | $classes = ['form-control', 'w-100']; |
|
| 30 | |||
| 31 | 1 | if (! empty($invalid) && ! isset($this->disableFeedback)) { |
|
| 32 | 1 | $classes[] = 'is-invalid'; |
|
| 33 | } |
||
| 34 | |||
| 35 | 1 | return implode(' ', $classes); |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get the view / contents that represent the component. |
||
| 40 | * |
||
| 41 | * @return \Illuminate\View\View|string |
||
| 42 | */ |
||
| 43 | 1 | public function render() |
|
| 46 | } |
||
| 47 | } |
||
| 48 |