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

Select   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A prepare() 0 9 2
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