Code Duplication    Length = 17-18 lines in 2 locations

src/AppBundle/Admin/RoleAdmin.php 1 location

@@ 54-71 (lines=18) @@
51
     *
52
     * @return void
53
     */
54
    protected function configureListFields(ListMapper $listMapper)
55
    {
56
        $listMapper
57
            ->addIdentifier('title')
58
            ->add('description')
59
            ->add('performance')
60
            ->add('employee')
61
            ->add(
62
                '_action',
63
                'actions',
64
                [
65
                    'actions' => [
66
                        'show' => [],
67
                        'edit' => [],
68
                        'delete' => [],
69
                    ],
70
                ]
71
            )
72
        ;
73
    }
74

src/AppBundle/Admin/PostAdmin.php 1 location

@@ 113-129 (lines=17) @@
110
     *
111
     * @return void
112
     */
113
    protected function configureListFields(ListMapper $listMapper)
114
    {
115
        $listMapper
116
            ->add('mainPicture', 'string', ['template' => '::SonataAdmin/thumbnail.html.twig'])
117
            ->addIdentifier('title')
118
            ->add('createdAt')
119
            ->add(
120
                '_action',
121
                'actions',
122
                [
123
                    'actions' => [
124
                        'edit' => [],
125
                        'delete' => [],
126
                    ],
127
                ]
128
            )
129
130
        ;
131
    }
132