Completed
Pull Request — master (#4)
by Eliurkis
01:41
created

Date::prepare()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 7
Ratio 100 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 7
loc 7
rs 9.4285
cc 1
eloc 3
nc 1
nop 3
1
<?php
2
3
namespace Eliurkis\Crud\FieldTypes;
4
5 View Code Duplication
class Date
1 ignored issue
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
6
{
7
    public static function prepare($name, $value = null, $properties = [])
8
    {
9
        return '<div class="input-group date">
10
                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
11
                    '.(\Form::text($name, \Input::old($name, $value), $properties['attributes'])).'
12
                </div>';
13
    }
14
}
15