Code Duplication    Length = 12-12 lines in 2 locations

src/Form/Field.php 2 locations

@@ 226-237 (lines=12) @@
223
     *
224
     * @return void
225
     */
226
    public function fill($data)
227
    {
228
        if (is_array($this->column)) {
229
            foreach ($this->column as $key => $column) {
230
                $this->value[$key] = array_get($data, $column);
231
            }
232
233
            return;
234
        }
235
236
        $this->value = array_get($data, $this->column);
237
    }
238
239
    /**
240
     * Set original value to the field.
@@ 246-257 (lines=12) @@
243
     *
244
     * @return void
245
     */
246
    public function setOriginal($data)
247
    {
248
        if (is_array($this->column)) {
249
            foreach ($this->column as $key => $column) {
250
                $this->original[$key] = array_get($data, $column);
251
            }
252
253
            return;
254
        }
255
256
        $this->original = array_get($data, $this->column);
257
    }
258
259
    /**
260
     * @param Form $form