Code Duplication    Length = 3-3 lines in 2 locations

core/helpers/EEH_Autoloader.helper.php 2 locations

@@ 241-243 (lines=3) @@
238
	 * @throws \EE_Error
239
	 */
240
	public static function register_autoloaders_for_each_file_in_folder( $folder, $recursive = false){
241
		if ( EEH_Autoloader::$debug === 'times' || EEH_Autoloader::$debug === 'all' ) {
242
			EEH_Debug_Tools::instance()->start_timer( basename( $folder ) );
243
		}
244
		// make sure last char is a /
245
		$folder .= $folder[strlen($folder)-1] !== DS ? DS : '';
246
		$class_to_filepath_map = array();
@@ 267-269 (lines=3) @@
264
		}
265
		// 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.
266
		self::register_autoloader( $class_to_filepath_map, false );
267
		if ( EEH_Autoloader::$debug === 'times' || EEH_Autoloader::$debug === 'all' ) {
268
			EEH_Debug_Tools::instance()->stop_timer( basename( $folder ) );
269
		}
270
	}
271
272