Completed
Branch master (a6481d)
by Fèvre
02:09
created

BootstrapServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 39
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
B boot() 0 31 1
1
<?php
2
namespace Xetaravel\Providers;
3
4
use Collective\Html\FormFacade as Form;
5
use Illuminate\Support\ServiceProvider;
6
7
class BootstrapServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap any application services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        Form::component(
17
            'bsText',
18
            'components.form.text',
19
            ['name', 'label' => null, 'value' => null, 'attributes' => []]
20
        );
21
        Form::component(
22
            'bsEmail',
23
            'components.form.email',
24
            ['name', 'label' => null, 'value' => null, 'attributes' => []]
25
        );
26
        Form::component(
27
            'bsTextarea',
28
            'components.form.textarea',
29
            ['name', 'label' => null, 'value' => null, 'attributes' => []]
30
        );
31
        Form::component('bsPassword', 'components.form.password', ['name', 'label' => null, 'attributes' => []]);
32
        Form::component('bsCheckbox', 'components.form.checkbox', [
33
            'name',
34
            'value' => 1,
35
            'checked' => null,
36
            'label' => null,
37
            'attributes' => []
38
        ]);
39
        Form::component(
40
            'bsInputGroup',
41
            'components.form.input-group',
42
            ['name', 'label' => null, 'value' => null, 'attributes' => []]
43
        );
44
    }
45
}
46