Code Duplication    Length = 10-11 lines in 5 locations

core/db_classes/EE_Attendee.class.php 2 locations

@@ 719-729 (lines=11) @@
716
     * @throws InvalidDataTypeException
717
     * @throws InvalidInterfaceException
718
     */
719
    public function get_admin_edit_link()
720
    {
721
        EE_Registry::instance()->load_helper('URL');
722
        return EEH_URL::add_query_args_and_nonce(
723
            array(
724
                'page'   => 'espresso_registrations',
725
                'action' => 'edit_attendee',
726
                'post'   => $this->ID(),
727
            ),
728
            admin_url('admin.php')
729
        );
730
    }
731
732
@@ 759-768 (lines=10) @@
756
     * @throws InvalidDataTypeException
757
     * @throws InvalidInterfaceException
758
     */
759
    public function get_admin_overview_link()
760
    {
761
        EE_Registry::instance()->load_helper('URL');
762
        return EEH_URL::add_query_args_and_nonce(
763
            array(
764
                'page'   => 'espresso_registrations',
765
                'action' => 'contact_list',
766
            ),
767
            admin_url('admin.php')
768
        );
769
    }
770
}
771

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

@@ 1826-1836 (lines=11) @@
1823
     * @return string
1824
     * @throws EE_Error
1825
     */
1826
    public function get_admin_details_link()
1827
    {
1828
        EE_Registry::instance()->load_helper('URL');
1829
        return EEH_URL::add_query_args_and_nonce(
1830
            array(
1831
                'page'    => 'espresso_registrations',
1832
                'action'  => 'view_registration',
1833
                '_REG_ID' => $this->ID(),
1834
            ),
1835
            admin_url('admin.php')
1836
        );
1837
    }
1838
1839
    /**