Code Duplication    Length = 6-8 lines in 3 locations

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 2254-2260 (lines=7) @@
2251
     * @return void
2252
     * @throws EE_Error
2253
     */
2254
    protected function _default_event_settings()
2255
    {
2256
        $this->_set_add_edit_form_tags('update_default_event_settings');
2257
        $this->_set_publish_post_box_vars(null, false, false, null, false);
2258
        $this->_template_args['admin_page_content'] = $this->_default_event_settings_form()->get_html();
2259
        $this->display_admin_page_with_sidebar();
2260
    }
2261
2262
2263
    /**

caffeinated/admin/new/pricing/Pricing_Admin_Page.core.php 1 location

@@ 1315-1320 (lines=6) @@
1312
    }
1313
1314
1315
    protected function _tax_settings()
1316
    {
1317
        $this->_set_add_edit_form_tags('update_tax_settings');
1318
        $this->_set_publish_post_box_vars(null, false, false, null, false);
1319
        $this->_template_args['admin_page_content'] = $this->tax_settings_form()->get_html();
1320
        $this->display_admin_page_with_sidebar();
1321
    }
1322
1323

admin_pages/payments/Payments_Admin_Page.core.php 1 location

@@ 872-879 (lines=8) @@
869
     * @throws \EventEspresso\core\exceptions\InvalidDataTypeException
870
     * @throws \EventEspresso\core\exceptions\InvalidInterfaceException
871
     */
872
    protected function _payment_settings()
873
    {
874
        $form = $this->getPaymentSettingsForm();
875
        $this->_set_add_edit_form_tags('update_payment_settings');
876
        $this->_set_publish_post_box_vars(null, false, false, null, false);
877
        $this->_template_args['admin_page_content'] =  $form->get_html_and_js();
878
        $this->display_admin_page_with_sidebar();
879
    }
880
881
882
    /**