Code Duplication    Length = 5-5 lines in 2 locations

core/EE_Config.core.php 1 location

@@ 1209-1213 (lines=5) @@
1206
            $module_class = 'EED_' . $module;
1207
        }
1208
        // does the module exist ?
1209
        if (! is_readable($module_path . DS . $module_class . $module_ext)) {
1210
            $msg = sprintf(
1211
                __(
1212
                    'The requested %s module file could not be found or is not readable due to file permissions.',
1213
                    'event_espresso'
1214
                ),
1215
                $module
1216
            );

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

@@ 127-131 (lines=5) @@
124
        // add class prefix
125
        $module_class = 'EE_PMT_' . $module;
126
        // does the module exist ?
127
        if ( ! is_readable($payment_method_path . DS . $module_class . $module_ext)) {
128
            $msg = sprintf(__('The requested %s payment method file could not be found or is not readable due to file permissions.',
129
                'event_espresso'), $module);
130
            EE_Error::add_error($msg . '||' . $msg, __FILE__, __FUNCTION__, __LINE__);
131
            return false;
132
        }
133
        if (WP_DEBUG === true) {
134
            EEH_Debug_Tools::instance()->start_timer();