Code Duplication    Length = 12-16 lines in 2 locations

src/Form/Field.php 2 locations

@@ 393-408 (lines=16) @@
390
     *
391
     * @return void
392
     */
393
    public function fill($data)
394
    {
395
        $this->data = $data;
396
397
        if (is_array($this->column)) {
398
            foreach ($this->column as $key => $column) {
399
                $this->value[$key] = Arr::get($data, $column);
400
            }
401
402
            return;
403
        }
404
405
        $this->value = Arr::get($data, $this->column);
406
407
        $this->formatValue();
408
    }
409
410
    /**
411
     * Format value by passing custom formater.
@@ 441-452 (lines=12) @@
438
     *
439
     * @return void
440
     */
441
    public function setOriginal($data)
442
    {
443
        if (is_array($this->column)) {
444
            foreach ($this->column as $key => $column) {
445
                $this->original[$key] = Arr::get($data, $column);
446
            }
447
448
            return;
449
        }
450
451
        $this->original = Arr::get($data, $this->column);
452
    }
453
454
    /**
455
     * @param Form $form