Completed
Pull Request — master (#14)
by Fèvre
30:20 queued 14:58
created

FormServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 40
rs 10

1 Method

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