Code Duplication    Length = 5-5 lines in 2 locations

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

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

core/EE_Config.core.php 1 location

@@ 1227-1231 (lines=5) @@
1224
			$module_class = 'EED_' . $module;
1225
		}
1226
		// does the module exist ?
1227
		if ( ! is_readable( $module_path . DS . $module_class . $module_ext ) ) {
1228
			$msg = sprintf(
1229
				__(
1230
					'The requested %s module file could not be found or is not readable due to file permissions.',
1231
					'event_espresso'
1232
				),
1233
				$module
1234
			);