Completed
Push — master ( 188ffb...31684b )
by Maxime
02:48
created

Forgotten   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
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 26
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildForm() 0 19 1
1
<?php namespace Distilleries\Expendable\Http\Forms\Login;
2
3
use Distilleries\FormBuilder\FormValidator;
4
5
class Forgotten extends FormValidator {
6
7
    public static $rules = [
8
        'email'    => 'required|email'
9
    ];
10
11
    public function buildForm()
12
    {
13
        $this->add('email', 'email',
14
            [
15
                'label' => trans('expendable::form.email'),
16
                'validation' => 'required,custom[email]',
17
                'attr' => [
18
                    'class' => 'placeholder-no-fix',
19
                ],
20
21
            ])
22
            ->add('send', 'submit',
23
            [
24
                'label' => trans('expendable::form.send'),
25
                'attr' => [
26
                    'class' =>'btn green-haze pull-right'
27
                ],
28
            ]);
29
    }
30
}