Code Duplication    Length = 5-5 lines in 2 locations

core/EE_Config.core.php 1 location

@@ 1161-1165 (lines=5) @@
1158
			$module_class = 'EED_' . $module;
1159
		}
1160
		// does the module exist ?
1161
		if ( ! is_readable( $module_path . DS . $module_class . $module_ext )) {
1162
			$msg = sprintf( __( 'The requested %s module file could not be found or is not readable due to file permissions.', 'event_espresso' ), $module );
1163
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
1164
			return FALSE;
1165
		}
1166
		// load the module class file
1167
		require_once( $module_path . $module_class . $module_ext );
1168
		// verify that class exists

core/libraries/payment_methods/EE_Payment_Method_Manager.lib.php 1 location

@@ 114-118 (lines=5) @@
111
		// add class prefix
112
		$module_class = 'EE_PMT_' . $module;
113
		// does the module exist ?
114
		if ( ! is_readable( $payment_method_path . DS . $module_class . $module_ext )) {
115
			$msg = sprintf( __( 'The requested %s payment method file could not be found or is not readable due to file permissions.', 'event_espresso' ), $module );
116
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
117
			return FALSE;
118
		}
119
		if ( WP_DEBUG === TRUE ) { EEH_Debug_Tools::instance()->start_timer(); }
120
		// load the module class file
121
		require_once( $payment_method_path . DS . $module_class . $module_ext );