Code Duplication    Length = 12-16 lines in 2 locations

src/Form/Field.php 2 locations

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