Code Duplication    Length = 6-7 lines in 2 locations

core/EE_Session.core.php 2 locations

@@ 1075-1081 (lines=7) @@
1072
                            __LINE__
1073
                        );
1074
                    }
1075
                } else {
1076
                    // yeeeeeeeeerrrrrrrrrrr OUT !!!!
1077
                    if ($show_all_notices) {
1078
                        EE_Error::add_error(
1079
                            sprintf(
1080
                                __(
1081
                                    'Sorry! %s is a default session datum and can not be reset.',
1082
                                    'event_espresso'
1083
                                ),
1084
                                $reset
@@ 1093-1098 (lines=6) @@
1090
                    }
1091
                    $return_value = false;
1092
                }
1093
            } elseif ($show_all_notices) {
1094
                // oops! that session var does not exist!
1095
                EE_Error::add_error(
1096
                    sprintf(
1097
                        __(
1098
                            'The session item provided, %s, is invalid or does not exist.',
1099
                            'event_espresso'
1100
                        ),
1101
                        $reset