Code Duplication    Length = 14-15 lines in 2 locations

src/LIN3S/CMSKernel/Infrastructure/Symfony/Form/Type/Menu/EditMenuTranslationType.php 1 location

@@ 52-65 (lines=14) @@
49
            ]);
50
    }
51
52
    public function buildView(FormView $view, FormInterface $form, array $options)
53
    {
54
        $view->vars = array_merge($view->vars, [
55
            'groups' => [
56
                [
57
                    'name'   => 'Menu',
58
                    'fields' => [
59
                        'translation.name',
60
                        'translation.items',
61
                    ],
62
                ],
63
            ],
64
        ]);
65
    }
66
67
    public function mapDataToForms($data, $forms)
68
    {

src/LIN3S/CMSKernel/Infrastructure/Symfony/Form/Type/Menu/AddMenuType.php 1 location

@@ 57-71 (lines=15) @@
54
        $resolver->setRequired('locale');
55
    }
56
57
    public function buildView(FormView $view, FormInterface $form, array $options)
58
    {
59
        $view->vars = array_merge($view->vars, [
60
            'groups' => [
61
                [
62
                    'name'   => 'Menu',
63
                    'fields' => [
64
                        'code',
65
                        'translation.name',
66
                        'translation.items',
67
                    ],
68
                ],
69
            ],
70
        ]);
71
    }
72
73
    public function mapDataToForms($data, $forms)
74
    {