Code Duplication    Length = 9-9 lines in 2 locations

core/EE_Config.core.php 2 locations

@@ 1050-1058 (lines=9) @@
1047
		// add class prefix
1048
		$widget_class = 'EEW_' . $widget;
1049
		// does the widget exist ?
1050
		if ( ! is_readable( $widget_path . DS . $widget_class . $widget_ext ) ) {
1051
			$msg = sprintf(
1052
				__(
1053
					'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',
1054
					'event_espresso'
1055
				),
1056
				$widget_class,
1057
				$widget_path . DS . $widget_class . $widget_ext
1058
			);
1059
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
1060
			return;
1061
		}
@@ 1146-1154 (lines=9) @@
1143
		// add class prefix
1144
		$shortcode_class = 'EES_' . $shortcode;
1145
		// does the shortcode exist ?
1146
		if ( ! is_readable( $shortcode_path . DS . $shortcode_class . $shortcode_ext ) ) {
1147
			$msg = sprintf(
1148
				__(
1149
					'The requested %s shortcode file could not be found or is not readable due to file permissions. It should be in %s',
1150
					'event_espresso'
1151
				),
1152
				$shortcode_class,
1153
				$shortcode_path . DS . $shortcode_class . $shortcode_ext
1154
			);
1155
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
1156
			return false;
1157
		}