Code Duplication    Length = 6-7 lines in 2 locations

core/EE_Session.core.php 2 locations

@@ 1047-1053 (lines=7) @@
1044
                        EE_Error::add_success(sprintf(__('The session variable %s was removed.', 'event_espresso'),
1045
                            $reset), __FILE__, __FUNCTION__, __LINE__);
1046
                    }
1047
                } else {
1048
                    // yeeeeeeeeerrrrrrrrrrr OUT !!!!
1049
                    if ($show_all_notices) {
1050
                        EE_Error::add_error(sprintf(__('Sorry! %s is a default session datum and can not be reset.',
1051
                            'event_espresso'), $reset), __FILE__, __FUNCTION__, __LINE__);
1052
                    }
1053
                    $return_value = false;
1054
                }
1055
            } elseif ($show_all_notices) {
1056
                // oops! that session var does not exist!
@@ 1055-1060 (lines=6) @@
1052
                    }
1053
                    $return_value = false;
1054
                }
1055
            } elseif ($show_all_notices) {
1056
                // oops! that session var does not exist!
1057
                EE_Error::add_error(sprintf(__('The session item provided, %s, is invalid or does not exist.',
1058
                    'event_espresso'), $reset), __FILE__, __FUNCTION__, __LINE__);
1059
                $return_value = false;
1060
            }
1061
        } // end of foreach
1062
        return $return_value;
1063
    }