ServiceForm::buildForm()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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
}