Code Duplication    Length = 12-12 lines in 2 locations

src/Form/Field.php 2 locations

@@ 321-332 (lines=12) @@
318
     *
319
     * @return void
320
     */
321
    public function fill($data)
322
    {
323
        // Field value is already setted.
324
//        if (!is_null($this->value)) {
325
//            return;
326
//        }
327
328
        if (is_array($this->column)) {
329
            foreach ($this->column as $key => $column) {
330
                $this->value[$key] = array_get($data, $column);
331
            }
332
333
            return;
334
        }
335
@@ 346-357 (lines=12) @@
343
     *
344
     * @return void
345
     */
346
    public function setOriginal($data)
347
    {
348
        if (is_array($this->column)) {
349
            foreach ($this->column as $key => $column) {
350
                $this->original[$key] = array_get($data, $column);
351
            }
352
353
            return;
354
        }
355
356
        $this->original = array_get($data, $this->column);
357
    }
358
359
    /**
360
     * @param Form $form