Select::prepare()   A
last analyzed

Complexity

Conditions 2
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

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