ServiceForm   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildForm() 0 7 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 8
    public function buildForm()
12
    {
13
        $this
14 8
            ->add('id', 'hidden')
15 8
            ->add('action', 'text');
16
17 8
        $this->addDefaultActions();
18
    }
19
}