Code Duplication    Length = 22-26 lines in 2 locations

caffeinated/admin/extend/about/Extend_About_Admin_Page.core.php 1 location

@@ 65-86 (lines=22) @@
62
63
64
65
	protected function _set_page_config() {
66
		$this->_page_config = array(
67
			'default' => array(
68
				'nav' => array(
69
					'label' => __('What\'s New', 'event_espresso'),
70
					'order' => 10),
71
				'require_nonce' => FALSE
72
				),
73
			'overview' => array(
74
				'nav' => array(
75
					'label' => __('About', 'event_espresso'),
76
					'order' => 20),
77
				'require_nonce' => FALSE
78
				),
79
			'credits' => array(
80
				'nav' => array(
81
					'label' => __('Credits', 'event_espresso'),
82
					'order' => 30),
83
				'require_nonce' => FALSE
84
				),
85
			);
86
	}
87
88
89
	protected function _whats_new() {

admin_pages/maintenance/Maintenance_Admin_Page.core.php 1 location

@@ 145-170 (lines=26) @@
142
143
144
145
    protected function _set_page_config()
146
    {
147
        $this->_page_config = array(
148
            'default'       => array(
149
                'nav'           => array(
150
                    'label' => esc_html__('Maintenance', 'event_espresso'),
151
                    'order' => 10,
152
                ),
153
                'require_nonce' => false,
154
            ),
155
            'data_reset'    => array(
156
                'nav'           => array(
157
                    'label' => esc_html__('Reset/Delete Data', 'event_espresso'),
158
                    'order' => 20,
159
                ),
160
                'require_nonce' => false,
161
            ),
162
            'system_status' => array(
163
                'nav'           => array(
164
                    'label' => esc_html__("System Information", "event_espresso"),
165
                    'order' => 30,
166
                ),
167
                'require_nonce' => false,
168
            ),
169
        );
170
    }
171
172
173