Code Duplication    Length = 5-5 lines in 2 locations

src/Form/Field.php 2 locations

@@ 336-340 (lines=5) @@
333
    protected function formatName($column)
334
    {
335
        if (is_string($column)) {
336
            if (Str::contains($column, '->')) {
337
                $name = explode('->', $column);
338
            } else {
339
                $name = explode('.', $column);
340
            }
341
342
            if (count($name) === 1) {
343
                return $name[0];
@@ 289-293 (lines=5) @@
286
     */
287
    protected function formatColumn($column = '')
288
    {
289
        if (Str::contains($column, '->')) {
290
            $this->isJsonType = true;
291
292
            $column = str_replace('->', '.', $column);
293
        }
294
295
        return $column;
296
    }