Code Duplication    Length = 15-17 lines in 2 locations

src/Admin/HistoryAdmin.php 1 location

@@ 86-102 (lines=17) @@
83
     *
84
     * @return void
85
     */
86
    protected function configureListFields(ListMapper $listMapper)
87
    {
88
        $listMapper
89
            ->add('mainPicture', 'string', ['template' => 'bundles/SonataAdmin/thumbnail.html.twig'])
90
            ->add('year', null, ['label' => 'History_Date'])
91
            ->addIdentifier('title')
92
            ->add('type')
93
            ->add('_action', 'actions',
94
                [
95
                    'actions' => [
96
                        'edit' => [],
97
                        'delete' => [],
98
                    ],
99
                ]
100
            )
101
        ;
102
    }
103
104
    /**
105
     * @param \Sonata\AdminBundle\Datagrid\DatagridMapper $datagridMapper

src/Admin/PerformanceEventAdmin.php 1 location

@@ 53-67 (lines=15) @@
50
     *
51
     * @return void
52
     */
53
    protected function configureListFields(ListMapper $listMapper)
54
    {
55
        $listMapper
56
            ->add('performance')
57
            ->add('dateTime')
58
            ->add('venue', null, ['template' => "App:SonataAdmin:list_field.html.twig"])
59
            ->add('buyTicketLink', 'string', ['template' => 'bundles/SonataAdmin/qr_list.html.twig'])
60
            ->add('_action', 'actions', [
61
                'actions' => [
62
                    'edit' => [],
63
                    'delete' => [],
64
                ],
65
            ])
66
        ;
67
    }
68
69
    /**
70
     * @param \Sonata\AdminBundle\Datagrid\DatagridMapper $datagridMapper