Code Duplication    Length = 12-16 lines in 2 locations

src/Form/Field.php 2 locations

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