Code Duplication    Length = 7-8 lines in 4 locations

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

@@ 1315-1321 (lines=7) @@
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
1324
    /**

admin_pages/general_settings/General_Settings_Admin_Page.core.php 1 location

@@ 1393-1400 (lines=8) @@
1390
    /**
1391
     * display the privacy settings form
1392
     */
1393
    public function privacySettings()
1394
    {
1395
        $this->_set_add_edit_form_tags('update_privacy_settings');
1396
        $this->_set_publish_post_box_vars(null, false, false, null, false);
1397
        $form_handler = $this->loader->getShared('EventEspresso\core\domain\services\admin\privacy\forms\PrivacySettingsFormHandler');
1398
        $this->_template_args['admin_page_content'] = $form_handler->display();
1399
        $this->display_admin_page_with_sidebar();
1400
    }
1401
1402
1403
    /**

admin_pages/payments/Payments_Admin_Page.core.php 1 location

@@ 896-903 (lines=8) @@
893
     * @throws InvalidDataTypeException
894
     * @throws InvalidInterfaceException
895
     */
896
    protected function _payment_settings()
897
    {
898
        $form = $this->getPaymentSettingsForm();
899
        $this->_set_add_edit_form_tags('update_payment_settings');
900
        $this->_set_publish_post_box_vars(null, false, false, null, false);
901
        $this->_template_args['admin_page_content'] =  $form->get_html_and_js();
902
        $this->display_admin_page_with_sidebar();
903
    }
904
905
906
    /**

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 2296-2302 (lines=7) @@
2293
     * @return void
2294
     * @throws EE_Error
2295
     */
2296
    protected function _default_event_settings()
2297
    {
2298
        $this->_set_add_edit_form_tags('update_default_event_settings');
2299
        $this->_set_publish_post_box_vars(null, false, false, null, false);
2300
        $this->_template_args['admin_page_content'] = $this->_default_event_settings_form()->get_html();
2301
        $this->display_admin_page_with_sidebar();
2302
    }
2303
2304
2305
    /**