Select   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A input() 0 4 1
A outputRange() 0 4 1
A outputMonth() 0 4 1
A outputYear() 0 4 1
1
<?php namespace Mascame\Artificer\Fields\Types;
2
3
use Form;
4
use Mascame\Artificer\Fields\Field;
5
6
class Select extends Field
7
{
8
9
    public function input()
10
    {
11
        return Form::select($this->name, $this->value, false, $this->attributes->all());
0 ignored issues
show
Bug introduced by
The method select() does not seem to exist on object<form>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
12
    }
13
14
    public function outputRange($start, $end)
15
    {
16
        return Form::selectRange($this->name, $start, $end);
0 ignored issues
show
Bug introduced by
The method selectRange() does not seem to exist on object<form>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
17
    }
18
19
    public function outputMonth()
20
    {
21
        return Form::selectMonth($this->name);
0 ignored issues
show
Bug introduced by
The method selectMonth() does not seem to exist on object<form>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
22
    }
23
24
    public function outputYear()
25
    {
26
        return Form::selectYear($this->name);
0 ignored issues
show
Bug introduced by
The method selectYear() does not seem to exist on object<form>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
27
    }
28
}