Code Duplication    Length = 5-5 lines in 2 locations

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 );

core/EE_Config.core.php 1 location

@@ 1152-1156 (lines=5) @@
1149
			$module_class = 'EED_' . $module;
1150
		}
1151
		// does the module exist ?
1152
		if ( ! is_readable( $module_path . DS . $module_class . $module_ext )) {
1153
			$msg = sprintf( __( 'The requested %s module file could not be found or is not readable due to file permissions.', 'event_espresso' ), $module );
1154
			EE_Error::add_error( $msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__ );
1155
			return FALSE;
1156
		}
1157
		// load the module class file
1158
		require_once( $module_path . $module_class . $module_ext );
1159
		// verify that class exists