HtmlFormServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 21
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 13 1
A map() 0 3 1
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