Code Duplication    Length = 18-18 lines in 2 locations

admin_pages/venues/Venues_Admin_Page.core.php 1 location

@@ 875-892 (lines=18) @@
872
        }
873
874
        // any errors?
875
        if ($success && ! $att_success) {
876
            EE_Error::add_error(
877
                __(
878
                    'Venue Details saved successfully but something went wrong with saving attachments.',
879
                    'event_espresso'
880
                ),
881
                __FILE__,
882
                __FUNCTION__,
883
                __LINE__
884
            );
885
        } elseif ($success === false) {
886
            EE_Error::add_error(
887
                __('Venue Details did not save successfully.', 'event_espresso'),
888
                __FILE__,
889
                __FUNCTION__,
890
                __LINE__
891
            );
892
        }
893
    }
894
895

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 1051-1068 (lines=18) @@
1048
            $att_success = ! $att_success ? $att_success : $_success;
1049
        }
1050
        // any errors?
1051
        if ($success && false === $att_success) {
1052
            EE_Error::add_error(
1053
                esc_html__(
1054
                    'Event Details saved successfully but something went wrong with saving attachments.',
1055
                    'event_espresso'
1056
                ),
1057
                __FILE__,
1058
                __FUNCTION__,
1059
                __LINE__
1060
            );
1061
        } elseif ($success === false) {
1062
            EE_Error::add_error(
1063
                esc_html__('Event Details did not save successfully.', 'event_espresso'),
1064
                __FILE__,
1065
                __FUNCTION__,
1066
                __LINE__
1067
            );
1068
        }
1069
    }
1070
1071