Code Duplication    Length = 9-9 lines in 18 locations

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

@@ 34-42 (lines=9) @@
31
        ]);
32
    }
33
34
    public function getEditFormView($model)
35
    {
36
        $template = $this->isReadonly() ? 'readonly' : 'edit';
37
38
        return view('jarboe::crud.fields.checkbox.'. $template, [
39
            'model' => $model,
40
            'field' => $this,
41
        ]);
42
    }
43
44
    public function getCreateFormView()
45
    {

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

@@ 52-60 (lines=9) @@
49
        ]);
50
    }
51
52
    public function getEditFormView($model)
53
    {
54
        $template = $this->isReadonly() ? 'readonly' : 'edit';
55
56
        return view('jarboe::crud.fields.color-picker.'. $template, [
57
            'model' => $model,
58
            'field' => $this,
59
        ]);
60
    }
61
62
    public function getCreateFormView()
63
    {

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

@@ 64-72 (lines=9) @@
61
        ]);
62
    }
63
64
    public function getEditFormView($model)
65
    {
66
        $template = $this->isReadonly() ? 'readonly' : 'edit';
67
68
        return view('jarboe::crud.fields.date.'. $template, [
69
            'model' => $model,
70
            'field' => $this,
71
        ]);
72
    }
73
74
    public function getCreateFormView()
75
    {

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

@@ 49-57 (lines=9) @@
46
        ]);
47
    }
48
49
    public function getEditFormView($model)
50
    {
51
        $template = $this->isReadonly() ? 'readonly' : 'edit';
52
53
        return view('jarboe::crud.fields.datetime.'. $template, [
54
            'model' => $model,
55
            'field' => $this,
56
        ]);
57
    }
58
59
    public function getCreateFormView()
60
    {

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

@@ 67-75 (lines=9) @@
64
        ]);
65
    }
66
67
    public function getEditFormView($model)
68
    {
69
        $template = $this->isReadonly() ? 'readonly' : 'edit';
70
71
        return view('jarboe::crud.fields.file.'. $template, [
72
            'model' => $model,
73
            'field' => $this,
74
        ]);
75
    }
76
77
    public function getCreateFormView()
78
    {

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

@@ 26-34 (lines=9) @@
23
        ]);
24
    }
25
26
    public function getEditFormView($model)
27
    {
28
        $template = $this->isReadonly() ? 'readonly' : 'edit';
29
30
        return view('jarboe::crud.fields.icon-picker.'. $template, [
31
            'model' => $model,
32
            'field' => $this,
33
        ]);
34
    }
35
36
    public function getCreateFormView()
37
    {

src/Jarboe/Table/Fields/Markup/DummyField.php 1 location

@@ 29-37 (lines=9) @@
26
        ]);
27
    }
28
29
    public function getEditFormView($model)
30
    {
31
        $template = $this->isReadonly() ? 'readonly' : 'edit';
32
33
        return view('jarboe::crud.fields.markup.dummy.'. $template, [
34
            'model' => $model,
35
            'field' => $this,
36
        ]);
37
    }
38
39
    public function getCreateFormView()
40
    {

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

@@ 42-50 (lines=9) @@
39
        ]);
40
    }
41
42
    public function getEditFormView($model)
43
    {
44
        $template = $this->isReadonly() ? 'readonly' : 'edit';
45
46
        return view('jarboe::crud.fields.number.'. $template, [
47
            'model' => $model,
48
            'field' => $this,
49
        ]);
50
    }
51
52
    public function getCreateFormView()
53
    {

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

@@ 65-73 (lines=9) @@
62
        ]);
63
    }
64
65
    public function getEditFormView($model)
66
    {
67
        $template = $this->isReadonly() ? 'readonly' : 'edit';
68
69
        return view('jarboe::crud.fields.password.'. $template, [
70
            'model' => $model,
71
            'field' => $this,
72
        ]);
73
    }
74
75
    public function getCreateFormView()
76
    {

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

@@ 89-97 (lines=9) @@
86
        ]);
87
    }
88
89
    public function getEditFormView($model)
90
    {
91
        $template = $this->isReadonly() ? 'readonly' : 'edit';
92
93
        return view('jarboe::crud.fields.radio.'. $template, [
94
            'model' => $model,
95
            'field' => $this,
96
        ]);
97
    }
98
99
    public function getCreateFormView()
100
    {

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

@@ 148-156 (lines=9) @@
145
        ]);
146
    }
147
148
    public function getEditFormView($model)
149
    {
150
        $template = $this->isReadonly() ? 'readonly' : 'edit';
151
152
        return view('jarboe::crud.fields.select.'. $template, [
153
            'model' => $model,
154
            'field' => $this,
155
        ]);
156
    }
157
158
    public function getCreateFormView()
159
    {

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

@@ 53-61 (lines=9) @@
50
        ]);
51
    }
52
53
    public function getEditFormView($model)
54
    {
55
        $template = $this->isReadonly() ? 'readonly' : 'edit';
56
57
        return view('jarboe::crud.fields.text.'. $template, [
58
            'model' => $model,
59
            'field' => $this,
60
        ]);
61
    }
62
63
    public function getCreateFormView()
64
    {

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

@@ 64-72 (lines=9) @@
61
        ]);
62
    }
63
64
    public function getEditFormView($model)
65
    {
66
        $template = $this->isReadonly() ? 'readonly' : 'edit';
67
68
        return view('jarboe::crud.fields.time.'. $template, [
69
            'model' => $model,
70
            'field' => $this,
71
        ]);
72
    }
73
74
    public function getCreateFormView()
75
    {

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

@@ 79-87 (lines=9) @@
76
        ]);
77
    }
78
79
    public function getEditFormView($model)
80
    {
81
        $template = $this->isReadonly() ? 'readonly' : 'edit';
82
83
        return view(sprintf('jarboe::crud.fields.wysiwyg.%s.%s', $this->getType(), $template), [
84
            'model' => $model,
85
            'field' => $this,
86
        ]);
87
    }
88
89
    public function getCreateFormView()
90
    {

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

@@ 36-44 (lines=9) @@
33
        ]);
34
    }
35
36
    public function getEditFormView($model)
37
    {
38
        $template = $this->isReadonly() ? 'readonly' : 'edit';
39
40
        return view('jarboe::crud.fields.tags.'. $template, [
41
            'model' => $model,
42
            'field' => $this,
43
        ]);
44
    }
45
46
    public function getCreateFormView()
47
    {

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

@@ 36-44 (lines=9) @@
33
        ]);
34
    }
35
36
    public function getEditFormView($model)
37
    {
38
        $template = $this->isReadonly() ? 'readonly' : 'edit';
39
40
        return view('jarboe::crud.fields.markdown.'. $template, [
41
            'model' => $model,
42
            'field' => $this,
43
        ]);
44
    }
45
46
    public function getCreateFormView()
47
    {

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

@@ 78-86 (lines=9) @@
75
        ]);
76
    }
77
78
    public function getEditFormView($model)
79
    {
80
        $template = $this->isReadonly() ? 'readonly' : 'edit';
81
82
        return view('jarboe::crud.fields.textarea.'. $template, [
83
            'model' => $model,
84
            'field' => $this,
85
        ]);
86
    }
87
88
    public function getCreateFormView()
89
    {

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

@@ 230-238 (lines=9) @@
227
        ]);
228
    }
229
230
    public function getEditFormView($model)
231
    {
232
        $template = $this->isReadonly() ? 'readonly' : 'edit';
233
234
        return view('jarboe::crud.fields.image.'. $template, [
235
            'model' => $model,
236
            'field' => $this,
237
        ]);
238
    }
239
240
    public function getCreateFormView()
241
    {