Date::input()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
c 3
b 1
f 0
dl 0
loc 11
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
1
<?php namespace Mascame\Artificer\Fields\Types;
2
3
use Form;
4
use Mascame\Artificer\Fields\Field;
5
6
class Date extends Field
7
{
8
9
    public function input()
10
    {
11
        ?>
12
        <div class="input-group">
13
            <div class="input-group-addon">
14
                <i class="fa fa-calendar"></i>
15
            </div>
16
            <?php print Form::text($this->name, $this->value, $this->attributes->all()); ?>
0 ignored issues
show
Bug introduced by
The method text() 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
        </div>
18
        <?php
19
    }
20
21
}