Code Duplication    Length = 9-9 lines in 2 locations

core/EE_Config.core.php 2 locations

@@ 1021-1029 (lines=9) @@
1018
		// add class prefix
1019
		$widget_class = 'EEW_' . $widget;
1020
		// does the widget exist ?
1021
		if ( ! is_readable( $widget_path . DS . $widget_class . $widget_ext ) ) {
1022
			$msg = sprintf(
1023
				__(
1024
					'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',
1025
					'event_espresso'
1026
				),
1027
				$widget_class,
1028
				$widget_path . DS . $widget_class . $widget_ext
1029
			);
1030
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
1031
			return;
1032
		}
@@ 1117-1125 (lines=9) @@
1114
		// add class prefix
1115
		$shortcode_class = 'EES_' . $shortcode;
1116
		// does the shortcode exist ?
1117
		if ( ! is_readable( $shortcode_path . DS . $shortcode_class . $shortcode_ext ) ) {
1118
			$msg = sprintf(
1119
				__(
1120
					'The requested %s shortcode file could not be found or is not readable due to file permissions. It should be in %s',
1121
					'event_espresso'
1122
				),
1123
				$shortcode_class,
1124
				$shortcode_path . DS . $shortcode_class . $shortcode_ext
1125
			);
1126
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
1127
			return false;
1128
		}