Code Duplication    Length = 12-12 lines in 3 locations

src/Jarboe/Table/Fields/Wysiwyg.php 1 location

@@ 66-77 (lines=12) @@
63
        }
64
    }
65
66
    public function getListView($model)
67
    {
68
        $template = 'list';
69
        if ($this->isTranslatable()) {
70
            $template .= '_translatable';
71
        }
72
73
        return view(sprintf('jarboe::crud.fields.wysiwyg.%s.%s', $this->getType(), $template), [
74
            'model' => $model,
75
            'field' => $this,
76
        ]);
77
    }
78
79
    public function getEditFormView($model)
80
    {

src/Jarboe/Table/Fields/Text.php 1 location

@@ 38-49 (lines=12) @@
35
        return is_array($value) ? $value : (string) $value;
36
    }
37
38
    public function getListView($model)
39
    {
40
        $template = 'list';
41
        if ($this->isTranslatable()) {
42
            $template .= '_translatable';
43
        }
44
45
        return view('jarboe::crud.fields.text.'. $template, [
46
            'model' => $model,
47
            'field' => $this,
48
        ]);
49
    }
50
51
    public function getEditFormView($model)
52
    {

src/Jarboe/Table/Fields/Textarea.php 1 location

@@ 76-87 (lines=12) @@
73
        return is_array($value) ? $value : (string) $value;
74
    }
75
76
    public function getListView($model)
77
    {
78
        $template = 'list';
79
        if ($this->isTranslatable()) {
80
            $template .= '_translatable';
81
        }
82
83
        return view('jarboe::crud.fields.textarea.'. $template, [
84
            'model' => $model,
85
            'field' => $this,
86
        ]);
87
    }
88
89
    public function getEditFormView($model)
90
    {