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