Code Duplication    Length = 14-18 lines in 3 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

src/AppBundle/Admin/PerformanceEventAdmin.php 1 location

@@ 159-172 (lines=14) @@
156
     *
157
     * @return void
158
     */
159
    protected function configureListFields(ListMapper $listMapper)
160
    {
161
        $listMapper
162
            ->add('performance')
163
            ->add('dateTime')
164
            ->add('venue')
165
            ->add('_action', 'actions', [
166
                'actions' => [
167
                    'edit' => [],
168
                    'delete' => [],
169
                ],
170
            ]);
171
    }
172
173
    /**
174
     * @param DatagridMapper $datagridMapper
175
     *