Code Duplication    Length = 21-21 lines in 2 locations

caffeinated/admin/new/tickets/Tickets_Admin_Page.core.php 1 location

@@ 142-162 (lines=21) @@
139
    }
140
141
142
    public function _set_list_table_views_default()
143
    {
144
        $this->_views = array(
145
            'all'     => array(
146
                'slug'        => 'all',
147
                'label'       => __('All', 'event_espresso'),
148
                'count'       => 0,
149
                'bulk_action' => array(
150
                    'trash_tickets' => __('Move to Trash', 'event_espresso'),
151
                ),
152
            ),
153
            'trashed' => array(
154
                'slug'        => 'trashed',
155
                'label'       => __('Trash', 'event_espresso'),
156
                'count'       => 0,
157
                'bulk_action' => array(
158
                    'restore_tickets' => __('Restore from Trash', 'event_espresso'),
159
                    'delete_tickets'  => __('Delete Permanently', 'event_espresso'),
160
                ),
161
            ),
162
        );
163
    }
164
165

caffeinated/admin/extend/events/Extend_Events_Admin_Page.core.php 1 location

@@ 322-342 (lines=21) @@
319
    /**
320
     * Set the list table views for the default ticket list table view.
321
     */
322
    public function _set_list_table_views_ticket_list_table()
323
    {
324
        $this->_views = array(
325
            'all'     => array(
326
                'slug'        => 'all',
327
                'label'       => esc_html__('All', 'event_espresso'),
328
                'count'       => 0,
329
                'bulk_action' => array(
330
                    'trash_tickets' => esc_html__('Move to Trash', 'event_espresso'),
331
                ),
332
            ),
333
            'trashed' => array(
334
                'slug'        => 'trashed',
335
                'label'       => esc_html__('Trash', 'event_espresso'),
336
                'count'       => 0,
337
                'bulk_action' => array(
338
                    'restore_tickets' => esc_html__('Restore from Trash', 'event_espresso'),
339
                    'delete_tickets'  => esc_html__('Delete Permanently', 'event_espresso'),
340
                ),
341
            ),
342
        );
343
    }
344
345