Code Duplication    Length = 1-1 lines in 2 locations

src/Fields/Name/Name.php 2 locations

@@ 48-48 (lines=1) @@
45
46
    public function setValueFromModel($model)
47
    {
48
        if (property_exists($model, $this->name.'_first')) $this->value_first = $model->{$this->name.'_first'};
49
        if (property_exists($model, $this->name.'_surname')) $this->value_surname = $model->{$this->name.'_surname'};
50
        $this->value = trim($this->value_first.' '.$this->value_surname);
51
    }
@@ 62-62 (lines=1) @@
59
60
    public function fillModelWithValue($model)
61
    {
62
        if (property_exists($model, $this->name.'_first')) $model->{$this->name.'_first'} = $this->value_first;
63
        if (property_exists($model, $this->name.'_surname')) $model->{$this->name.'_surname'} = $this->value_surname;
64
        if (property_exists($model, $this->name)) $model->{$this->name} = $this->value;
65
    }