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

@@ 1234-1238 (lines=5) @@
1231
			$module_class = 'EED_' . $module;
1232
		}
1233
		// does the module exist ?
1234
		if ( ! is_readable( $module_path . DS . $module_class . $module_ext ) ) {
1235
			$msg = sprintf(
1236
				__(
1237
					'The requested %s module file could not be found or is not readable due to file permissions.',
1238
					'event_espresso'
1239
				),
1240
				$module
1241
			);