Code Duplication    Length = 13-14 lines in 2 locations

src/Columns/ModelFunctionAttributeColumn.php 1 location

@@ 10-23 (lines=14) @@
7
use Webfactor\Laravel\Backpack\FluentSyntax\Traits\Prefixable;
8
use Webfactor\Laravel\Backpack\FluentSyntax\Traits\Relationable;
9
10
class ModelFunctionAttributeColumn extends CrudColumnAbstract
11
{
12
    use Limitable;
13
14
    protected $type = 'model_function_attribute';
15
16
    public function __construct(string $name, string $function, string $attribute)
17
    {
18
        parent::__construct($name);
19
20
        $this->options['function_name'] = $function;
21
        $this->options['attribute'] = $attribute;
22
    }
23
}
24

src/Columns/ModelFunctionColumn.php 1 location

@@ 10-22 (lines=13) @@
7
use Webfactor\Laravel\Backpack\FluentSyntax\Traits\Prefixable;
8
use Webfactor\Laravel\Backpack\FluentSyntax\Traits\Relationable;
9
10
class ModelFunctionColumn extends CrudColumnAbstract
11
{
12
    use Limitable;
13
14
    protected $type = 'model_function';
15
16
    public function __construct(string $name, string $function)
17
    {
18
        parent::__construct($name);
19
20
        $this->options['function_name'] = $function;
21
    }
22
}
23