Select   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

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