Code Duplication    Length = 10-11 lines in 5 locations

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

core/db_classes/EE_Registration.class.php 1 location

@@ 1407-1417 (lines=11) @@
1404
	 * Return the link to the admin details for the object.
1405
	 * @return string
1406
	 */
1407
	public function get_admin_details_link() {
1408
		EE_Registry::instance()->load_helper( 'URL' );
1409
		return EEH_URL::add_query_args_and_nonce(
1410
			array(
1411
				'page' => 'espresso_registrations',
1412
				'action' => 'view_registration',
1413
				'_REG_ID' => $this->ID()
1414
			),
1415
			admin_url( 'admin.php' )
1416
		);
1417
	}
1418
1419
	/**
1420
	 * Returns the link to the editor for the object.  Sometimes this is the same as the details.