Code Duplication    Length = 5-5 lines in 2 locations

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

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

core/EE_Config.core.php 1 location

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