Code Duplication    Length = 5-13 lines in 2 locations

caffeinated/admin/extend/registration_form/Extend_Registration_Form_Admin_Page.core.php 1 location

@@ 835-839 (lines=5) @@
832
                );
833
                $this->_redirect_after_action(false, '', '', array('action' => 'default'), false);
834
            }
835
        } else {
836
            EE_Error::add_error(
837
                sprintf(
838
                    esc_html__(
839
                        'Could not duplicate question with ID %d because it didn\'t exist!',
840
                        'event_espresso'
841
                    ),
842
                    $question_ID

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 2571-2583 (lines=13) @@
2568
    protected function _trash_or_restore_registrations($trash = true)
2569
    {
2570
        // if empty _REG_ID then get out because there's nothing to do
2571
        if (empty($this->_req_data['_REG_ID'])) {
2572
            EE_Error::add_error(
2573
                sprintf(
2574
                    esc_html__(
2575
                        'In order to %1$s registrations you must select which ones you wish to %1$s by clicking the checkboxes.',
2576
                        'event_espresso'
2577
                    ),
2578
                    $trash ? 'trash' : 'restore'
2579
                ),
2580
                __FILE__,
2581
                __LINE__,
2582
                __FUNCTION__
2583
            );
2584
            $this->_redirect_after_action(false, '', '', array(), true);
2585
        }
2586
        $success = 0;