Code Duplication    Length = 10-11 lines in 5 locations

core/db_classes/EE_Attendee.class.php 2 locations

@@ 649-659 (lines=11) @@
646
     *
647
     * @return string
648
     */
649
    public function get_admin_edit_link()
650
    {
651
        EE_Registry::instance()->load_helper('URL');
652
        return EEH_URL::add_query_args_and_nonce(
653
            array(
654
                'page'   => 'espresso_registrations',
655
                'action' => 'edit_attendee',
656
                'post'   => $this->ID(),
657
            ),
658
            admin_url('admin.php')
659
        );
660
    }
661
662
@@ 679-688 (lines=10) @@
676
     *
677
     * @return string
678
     */
679
    public function get_admin_overview_link()
680
    {
681
        EE_Registry::instance()->load_helper('URL');
682
        return EEH_URL::add_query_args_and_nonce(
683
            array(
684
                'page'   => 'espresso_registrations',
685
                'action' => 'contact_list',
686
            ),
687
            admin_url('admin.php')
688
        );
689
    }
690
691

core/db_classes/EE_Message.class.php 2 locations

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

core/db_classes/EE_Registration.class.php 1 location

@@ 1733-1743 (lines=11) @@
1730
     * @return string
1731
     * @throws EE_Error
1732
     */
1733
    public function get_admin_details_link()
1734
    {
1735
        EE_Registry::instance()->load_helper('URL');
1736
        return EEH_URL::add_query_args_and_nonce(
1737
            array(
1738
                'page'    => 'espresso_registrations',
1739
                'action'  => 'view_registration',
1740
                '_REG_ID' => $this->ID(),
1741
            ),
1742
            admin_url('admin.php')
1743
        );
1744
    }
1745
1746
    /**