HtmlFormServiceProvider::map()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace App\Providers;
4
5
use Form;
6
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
7
8
class HtmlFormServiceProvider extends ServiceProvider
9
{
10
11 87
    public function boot()
12
    {
13 87
        Form::component('bsPassword', 'components.form.horiz-password', ['name', 'attributes' => []]);
14 87
        Form::component('bsSelect', 'components.form.horiz-select', ['name', 'values' => [], 'selected' => null, 'attributes' => []]);
15 87
        Form::component('bsSubmit', 'components.form.horiz-submit', ['name', 'attributes' => []]);
16 87
        Form::component('bsText', 'components.form.horiz-text', ['name', 'value', 'attributes' => []]);
17
18 87
        Form::component('ajaxDynamicText', 'components.form.ajax-dynamic-text', ['name', 'values' => [], 'attributes' => []]);
19 87
        Form::component('ajaxRadio', 'components.form.ajax-radio', ['setting', 'label'=>null, 'items' => []]);
20 87
        Form::component('ajaxSortable', 'components.form.ajax-sortable', ['setting', 'label'=>null, 'default' => []]);
21
22 87
        parent::boot();
23 87
    }
24
25 87
    public function map()
26
    {
27 87
    }
28
}
29