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

Textarea::prepare()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 4
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 3
1
<?php
2
3
namespace Eliurkis\Crud\FieldTypes;
4
5 View Code Duplication
class Textarea
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 \Form::textarea($name, \Input::old($name, $value), $properties['attributes']);
10
    }
11
}
12