Code Duplication    Length = 6-7 lines in 2 locations

core/EE_Session.core.php 2 locations

@@ 1030-1036 (lines=7) @@
1027
                        EE_Error::add_success(sprintf(__('The session variable %s was removed.', 'event_espresso'),
1028
                            $reset), __FILE__, __FUNCTION__, __LINE__);
1029
                    }
1030
                } else {
1031
                    // yeeeeeeeeerrrrrrrrrrr OUT !!!!
1032
                    if ($show_all_notices) {
1033
                        EE_Error::add_error(sprintf(__('Sorry! %s is a default session datum and can not be reset.',
1034
                            'event_espresso'), $reset), __FILE__, __FUNCTION__, __LINE__);
1035
                    }
1036
                    $return_value = false;
1037
                }
1038
            } elseif ($show_all_notices) {
1039
                // oops! that session var does not exist!
@@ 1038-1043 (lines=6) @@
1035
                    }
1036
                    $return_value = false;
1037
                }
1038
            } elseif ($show_all_notices) {
1039
                // oops! that session var does not exist!
1040
                EE_Error::add_error(sprintf(__('The session item provided, %s, is invalid or does not exist.',
1041
                    'event_espresso'), $reset), __FILE__, __FUNCTION__, __LINE__);
1042
                $return_value = false;
1043
            }
1044
        } // end of foreach
1045
        return $return_value;
1046
    }