Code Duplication    Length = 9-9 lines in 2 locations

core/EE_Config.core.php 2 locations

@@ 1092-1100 (lines=9) @@
1089
        // add class prefix
1090
        $widget_class = 'EEW_' . $widget;
1091
        // does the widget exist ?
1092
        if (! is_readable($widget_path . DS . $widget_class . $widget_ext)) {
1093
            $msg = sprintf(
1094
                __(
1095
                    'The requested %s widget file could not be found or is not readable due to file permissions. Please ensure the following path is correct: %s',
1096
                    'event_espresso'
1097
                ),
1098
                $widget_class,
1099
                $widget_path . DS . $widget_class . $widget_ext
1100
            );
1101
            EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__);
1102
            return;
1103
        }
@@ 1190-1198 (lines=9) @@
1187
        // add class prefix
1188
        $shortcode_class = 'EES_' . $shortcode;
1189
        // does the shortcode exist ?
1190
        if (! is_readable($shortcode_path . DS . $shortcode_class . $shortcode_ext)) {
1191
            $msg = sprintf(
1192
                __(
1193
                    'The requested %s shortcode file could not be found or is not readable due to file permissions. It should be in %s',
1194
                    'event_espresso'
1195
                ),
1196
                $shortcode_class,
1197
                $shortcode_path . DS . $shortcode_class . $shortcode_ext
1198
            );
1199
            EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__);
1200
            return false;
1201
        }