Code Duplication    Length = 6-7 lines in 2 locations

core/EE_Session.core.php 2 locations

@@ 1063-1069 (lines=7) @@
1060
                        EE_Error::add_success(sprintf(__('The session variable %s was removed.', 'event_espresso'),
1061
                            $reset), __FILE__, __FUNCTION__, __LINE__);
1062
                    }
1063
                } else {
1064
                    // yeeeeeeeeerrrrrrrrrrr OUT !!!!
1065
                    if ($show_all_notices) {
1066
                        EE_Error::add_error(sprintf(__('Sorry! %s is a default session datum and can not be reset.',
1067
                            'event_espresso'), $reset), __FILE__, __FUNCTION__, __LINE__);
1068
                    }
1069
                    $return_value = false;
1070
                }
1071
            } elseif ($show_all_notices) {
1072
                // oops! that session var does not exist!
@@ 1071-1076 (lines=6) @@
1068
                    }
1069
                    $return_value = false;
1070
                }
1071
            } elseif ($show_all_notices) {
1072
                // oops! that session var does not exist!
1073
                EE_Error::add_error(sprintf(__('The session item provided, %s, is invalid or does not exist.',
1074
                    'event_espresso'), $reset), __FILE__, __FUNCTION__, __LINE__);
1075
                $return_value = false;
1076
            }
1077
        } // end of foreach
1078
        return $return_value;
1079
    }