Code Duplication    Length = 3-3 lines in 2 locations

core/helpers/EEH_Autoloader.helper.php 2 locations

@@ 263-265 (lines=3) @@
260
     */
261
    public static function register_autoloaders_for_each_file_in_folder($folder, $recursive = false, $debug = false)
262
    {
263
        if (EEH_Autoloader::$debug === 'times' || EEH_Autoloader::$debug === 'all' || $debug) {
264
            EEH_Debug_Tools::instance()->start_timer(basename($folder));
265
        }
266
        // make sure last char is a /
267
        $folder .= $folder[ strlen($folder)-1 ] !== DS ? DS : '';
268
        $class_to_filepath_map = array();
@@ 289-291 (lines=3) @@
286
        }
287
        // we remove the necessity to do a is_readable() check via the $read_check flag because glob by nature will not return non_readable files/directories.
288
        self::register_autoloader($class_to_filepath_map, false, $debug);
289
        if (EEH_Autoloader::$debug === 'times' || EEH_Autoloader::$debug === 'all') {
290
            EEH_Debug_Tools::instance()->stop_timer(basename($folder));
291
        }
292
    }
293
294