Code Duplication    Length = 9-9 lines in 2 locations

core/EE_Config.core.php 1 location

@@ 1053-1061 (lines=9) @@
1050
		// add class prefix
1051
		$widget_class = 'EEW_' . $widget;
1052
		// does the widget exist ?
1053
		if ( ! is_readable( $widget_path . DS . $widget_class . $widget_ext ) ) {
1054
			$msg = sprintf(
1055
				__(
1056
					'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',
1057
					'event_espresso'
1058
				),
1059
				$widget_class,
1060
				$widget_path . DS . $widget_class . $widget_ext
1061
			);
1062
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
1063
			return;
1064
		}

core/services/shortcodes/LegacyShortcodesManager.php 1 location

@@ 132-140 (lines=9) @@
129
        // add class prefix
130
        $shortcode_class = 'EES_' . $shortcode;
131
        // does the shortcode exist ?
132
        if ( ! is_readable($shortcode_path . DS . $shortcode_class . $shortcode_ext)) {
133
            $msg = sprintf(
134
                __(
135
                    'The requested %s shortcode file could not be found or is not readable due to file permissions. It should be in %s',
136
                    'event_espresso'
137
                ),
138
                $shortcode_class,
139
                $shortcode_path . DS . $shortcode_class . $shortcode_ext
140
            );
141
            EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__);
142
            return false;
143
        }