Code Duplication    Length = 20-20 lines in 3 locations

src/Distilleries/Expendable/Http/Controllers/Backend/ComponentController.php 1 location

@@ 39-58 (lines=20) @@
36
    // ------------------------------------------------------------------------------------------------
37
    // ------------------------------------------------------------------------------------------------
38
39
    public function getEdit($id = '')
40
    {
41
42
        $form = FormBuilder::create(get_class($this->form));
43
44
45
        $form_content = view('form-builder::form.components.formgenerator.full', [
46
            'form' => $form
47
        ]);
48
        $content      = view('expendable::admin.form.state.form', [
49
50
        ]);
51
52
        $this->layoutManager->add([
53
            'form'    => $form_content,
54
            'content' => $content,
55
        ]);
56
57
        return $this->layoutManager->render();
58
    }
59
60
    // ------------------------------------------------------------------------------------------------
61

src/Distilleries/Expendable/States/ExportStateTrait.php 1 location

@@ 14-33 (lines=20) @@
11
    // ------------------------------------------------------------------------------------------------
12
    // ------------------------------------------------------------------------------------------------
13
14
    public function getExport()
15
    {
16
        $form = FormBuilder::create($this->export_form, [
17
            'model' => $this->model
18
        ]);
19
20
        $form_content = view('expendable::admin.form.components.formgenerator.export', [
21
            'form' => $form
22
        ]);
23
        $content      = view('expendable::admin.form.state.form', [
24
25
        ]);
26
27
        $this->layoutManager->add([
28
            'form'=>$form_content,
29
            'content'=>$content,
30
        ]);
31
32
        return $this->layoutManager->render();
33
    }
34
35
    // ------------------------------------------------------------------------------------------------
36

src/Distilleries/Expendable/States/ImportStateTrait.php 1 location

@@ 16-35 (lines=20) @@
13
    // ------------------------------------------------------------------------------------------------
14
    // ------------------------------------------------------------------------------------------------
15
16
    public function getImport()
17
    {
18
        $form = FormBuilder::create($this->import_form, [
19
            'model' => $this->model
20
        ]);
21
22
        $form_content = view('expendable::admin.form.components.formgenerator.import', [
23
            'form' => $form
24
        ]);
25
        $content      = view('expendable::admin.form.state.form', [
26
27
        ]);
28
29
        $this->layoutManager->add([
30
        'form'=>$form_content,
31
        'content'=>$content,
32
        ]);
33
34
        return $this->layoutManager->render();
35
    }
36
37
    // ------------------------------------------------------------------------------------------------
38