Code Duplication    Length = 10-11 lines in 5 locations

core/db_classes/EE_Registration.class.php 1 location

@@ 1306-1316 (lines=11) @@
1303
	 * Return the link to the admin details for the object.
1304
	 * @return string
1305
	 */
1306
	public function get_admin_details_link() {
1307
		EE_Registry::instance()->load_helper( 'URL' );
1308
		return EEH_URL::add_query_args_and_nonce(
1309
			array(
1310
				'page' => 'espresso_registrations',
1311
				'action' => 'view_registration',
1312
				'_REG_ID' => $this->ID()
1313
			),
1314
			admin_url( 'admin.php' )
1315
		);
1316
	}
1317
1318
	/**
1319
	 * Returns the link to the editor for the object.  Sometimes this is the same as the details.

core/db_classes/EE_Message.class.php 2 locations

@@ 824-833 (lines=10) @@
821
     *
822
     * @return string
823
     */
824
    public function get_admin_settings_link()
825
    {
826
        EE_Registry::instance()->load_helper('URL');
827
        return EEH_URL::add_query_args_and_nonce(
828
            array(
829
                'page'   => 'espresso_messages',
830
                'action' => 'settings',
831
            ),
832
            admin_url('admin.php')
833
        );
834
    }
835
836
    /**
@@ 841-850 (lines=10) @@
838
     *
839
     * @return string
840
     */
841
    public function get_admin_overview_link()
842
    {
843
        EE_Registry::instance()->load_helper('URL');
844
        return EEH_URL::add_query_args_and_nonce(
845
            array(
846
                'page'   => 'espresso_messages',
847
                'action' => 'default',
848
            ),
849
            admin_url('admin.php')
850
        );
851
    }
852
853

core/db_classes/EE_Attendee.class.php 2 locations

@@ 644-654 (lines=11) @@
641
     *
642
     * @return string
643
     */
644
    public function get_admin_edit_link()
645
    {
646
        EE_Registry::instance()->load_helper('URL');
647
        return EEH_URL::add_query_args_and_nonce(
648
            array(
649
                'page'   => 'espresso_registrations',
650
                'action' => 'edit_attendee',
651
                'post'   => $this->ID(),
652
            ),
653
            admin_url('admin.php')
654
        );
655
    }
656
657
@@ 674-683 (lines=10) @@
671
     *
672
     * @return string
673
     */
674
    public function get_admin_overview_link()
675
    {
676
        EE_Registry::instance()->load_helper('URL');
677
        return EEH_URL::add_query_args_and_nonce(
678
            array(
679
                'page'   => 'espresso_registrations',
680
                'action' => 'contact_list',
681
            ),
682
            admin_url('admin.php')
683
        );
684
    }
685
686