Code Duplication    Length = 10-11 lines in 5 locations

core/db_classes/EE_Message.class.php 2 locations

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

core/db_classes/EE_Registration.class.php 1 location

@@ 1804-1814 (lines=11) @@
1801
     * @return string
1802
     * @throws EE_Error
1803
     */
1804
    public function get_admin_details_link()
1805
    {
1806
        EE_Registry::instance()->load_helper('URL');
1807
        return EEH_URL::add_query_args_and_nonce(
1808
            array(
1809
                'page'    => 'espresso_registrations',
1810
                'action'  => 'view_registration',
1811
                '_REG_ID' => $this->ID(),
1812
            ),
1813
            admin_url('admin.php')
1814
        );
1815
    }
1816
1817
    /**

core/db_classes/EE_Attendee.class.php 2 locations

@@ 745-755 (lines=11) @@
742
     * @throws InvalidDataTypeException
743
     * @throws InvalidInterfaceException
744
     */
745
    public function get_admin_edit_link()
746
    {
747
        EE_Registry::instance()->load_helper('URL');
748
        return EEH_URL::add_query_args_and_nonce(
749
            array(
750
                'page'   => 'espresso_registrations',
751
                'action' => 'edit_attendee',
752
                'post'   => $this->ID(),
753
            ),
754
            admin_url('admin.php')
755
        );
756
    }
757
758
@@ 785-794 (lines=10) @@
782
     * @throws InvalidDataTypeException
783
     * @throws InvalidInterfaceException
784
     */
785
    public function get_admin_overview_link()
786
    {
787
        EE_Registry::instance()->load_helper('URL');
788
        return EEH_URL::add_query_args_and_nonce(
789
            array(
790
                'page'   => 'espresso_registrations',
791
                'action' => 'contact_list',
792
            ),
793
            admin_url('admin.php')
794
        );
795
    }
796
}
797