Code Duplication    Length = 9-11 lines in 4 locations

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
    /**

core/db_classes/EE_Attendee.class.php 2 locations

@@ 649-658 (lines=10) @@
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
@@ 679-687 (lines=9) @@
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

core/db_classes/EE_Message.class.php 1 location

@@ 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
    /**