Code Duplication    Length = 23-23 lines in 2 locations

Admin/AdminBlock.php 1 location

@@ 29-51 (lines=23) @@
26
     *
27
     * @return void
28
     */
29
    protected function configureListFields(ListMapper $listMapper)
30
    {
31
        $listMapper
32
            ->add('id')
33
            ->add('locale', null, [
34
                'label' => 'Langue',
35
            ])
36
            ->add('name', null, [
37
                'label' => 'Nom',
38
            ])
39
            ->add('dateCreated', null, [
40
                'label' => 'Date de création',
41
            ])
42
            ->add('dateUpdated', null, [
43
                'label' => 'Date d\'édition',
44
            ])
45
            ->add('_action', 'actions', [
46
                'actions' => [
47
                    'editContent' => ['template' => 'AlpixelCMSBundle:admin:fields/list__action_edit.html.twig'],
48
                    'delete'      => [],
49
                ],
50
            ]);
51
    }
52
}

Admin/BaseBlockEntityAdmin.php 1 location

@@ 44-66 (lines=23) @@
41
     *
42
     * @return void
43
     */
44
    protected function configureListFields(ListMapper $listMapper)
45
    {
46
        $listMapper
47
            ->add('id')
48
            ->add('locale', null, [
49
                'label' => 'Langue',
50
            ])
51
            ->add('name', null, [
52
                'label' => 'Nom',
53
            ])
54
            ->add('dateCreated', null, [
55
                'label' => 'Date de création',
56
            ])
57
            ->add('dateUpdated', null, [
58
                'label' => 'Date d\'édition',
59
            ])
60
            ->add('_action', 'actions', [
61
                'actions' => [
62
                    'editContent' => ['template' => 'AlpixelCMSBundle:admin:fields/list__action_edit.html.twig'],
63
                    'delete'      => [],
64
                ],
65
            ]);
66
    }
67
}
68