Select   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 30
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A render() 0 3 1
A __construct() 0 11 1
1
<?php
2
3
namespace JeroenNoten\LaravelAdminLte\View\Components\Form;
4
5
class Select extends InputGroupComponent
6
{
7
    use Traits\OldValueSupportTrait;
8
9
    /**
10
     * Create a new component instance.
11
     *
12
     * @return void
13
     */
14 3
    public function __construct(
15
        $name, $id = null, $label = null, $igroupSize = null, $labelClass = null,
16
        $fgroupClass = null, $igroupClass = null, $disableFeedback = null,
17
        $errorKey = null, $enableOldSupport = null
18
    ) {
19 3
        parent::__construct(
20 3
            $name, $id, $label, $igroupSize, $labelClass, $fgroupClass,
21 3
            $igroupClass, $disableFeedback, $errorKey
22 3
        );
23
24 3
        $this->enableOldSupport = isset($enableOldSupport);
25
    }
26
27
    /**
28
     * Get the view / contents that represent the component.
29
     *
30
     * @return \Illuminate\View\View|string
31
     */
32 1
    public function render()
33
    {
34 1
        return view('adminlte::components.form.select');
35
    }
36
}
37