Code Duplication    Length = 9-9 lines in 2 locations

core/EE_Config.core.php 2 locations

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