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

ServiceForm   A

Complexity

Total Complexity 1

Size/Duplication

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildForm() 0 8 1
1
<?php namespace Distilleries\Expendable\Http\Forms\Service;
2
3
use Distilleries\FormBuilder\FormValidator;
4
5
class ServiceForm extends FormValidator {
6
7
    public static $rules = [
8
        'action' => 'required|unique:services'
9
    ];
10
11
    public function buildForm()
12
    {
13
        $this
14
            ->add('id', 'hidden')
15
            ->add('action', 'text');
16
17
        $this->addDefaultActions();
18
    }
19
}