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

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