Completed
Pull Request — master (#6)
by Eliurkis
01:48
created

Select::prepare()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 2
eloc 6
nc 1
nop 4
1
<?php
2
3
namespace Eliurkis\Crud\FieldTypes;
4
5
class Select
6
{
7
    public static function prepare($name, $options = [], $value = null, $properties = [])
8
    {
9
        return \Form::select(
10
            $name,
11
            $options,
12
            \Input::old($name, $value),
13
            isset($properties['attributes']) ? $properties['attributes'] : []
14
        );
15
    }
16
}
17