Code Duplication    Length = 24-24 lines in 2 locations

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 83-106 (lines=24) @@
80
    /**
81
     * Sets the page properties for this admin page group.
82
     */
83
    protected function _define_page_props()
84
    {
85
        $this->_admin_page_title = EVENTS_LABEL;
86
        $this->_labels = array(
87
            'buttons'      => array(
88
                'add'             => esc_html__('Add New Event', 'event_espresso'),
89
                'edit'            => esc_html__('Edit Event', 'event_espresso'),
90
                'delete'          => esc_html__('Delete Event', 'event_espresso'),
91
                'add_category'    => esc_html__('Add New Category', 'event_espresso'),
92
                'edit_category'   => esc_html__('Edit Category', 'event_espresso'),
93
                'delete_category' => esc_html__('Delete Category', 'event_espresso'),
94
            ),
95
            'editor_title' => array(
96
                'espresso_events' => esc_html__('Enter event title here', 'event_espresso'),
97
            ),
98
            'publishbox'   => array(
99
                'create_new'        => esc_html__('Save New Event', 'event_espresso'),
100
                'edit'              => esc_html__('Update Event', 'event_espresso'),
101
                'add_category'      => esc_html__('Save New Category', 'event_espresso'),
102
                'edit_category'     => esc_html__('Update Category', 'event_espresso'),
103
                'template_settings' => esc_html__('Update Settings', 'event_espresso'),
104
            ),
105
        );
106
    }
107
108
109
    /**

admin_pages/venues/Venues_Admin_Page.core.php 1 location

@@ 70-93 (lines=24) @@
67
    }
68
69
70
    protected function _define_page_props()
71
    {
72
        $this->_admin_page_title = $this->page_label;
73
        $this->_labels = array(
74
            'buttons'      => array(
75
                'add'             => __('Add New Venue', 'event_espresso'),
76
                'edit'            => __('Edit Venue', 'event_espresso'),
77
                'delete'          => __('Delete Venue', 'event_espresso'),
78
                'add_category'    => __('Add New Category', 'event_espresso'),
79
                'edit_category'   => __('Edit Category', 'event_espresso'),
80
                'delete_category' => __('Delete Category', 'event_espresso'),
81
            ),
82
            'editor_title' => array(
83
                'espresso_venues' => __('Enter Venue name here', 'event_espresso'),
84
            ),
85
            'publishbox'   => array(
86
                'create_new'          => __('Save New Venue', 'event_espresso'),
87
                'edit'                => __('Update Venue', 'event_espresso'),
88
                'add_category'        => __('Save New Category', 'event_espresso'),
89
                'edit_category'       => __('Update Category', 'event_espresso'),
90
                'google_map_settings' => __('Update Settings', 'event_espresso'),
91
            ),
92
        );
93
    }
94
95
96
    protected function _set_page_routes()