original_string: public static function getFilesystemFilesInFolder(FilesystemFolder $folder) {
  
  		$files = [];
  
  		$glob = glob($folder->getPath() . '*', GLOB_NOSORT);
  
  		if($glob !== FALSE) {
  
  			foreach($glob as $f) {
  				if(!is_dir($f)) {
  
  					if(!isset(self::$instances[$f])) {
  						self::$instances[$f] = new self(basename($f), $folder);
  					}
  
  					$files[] = self::$instances[$f];
  				}
  			}
  		}
  
  		return $files;
  	}
code: public static function getFilesystemFilesInFolder(FilesystemFolder $folder) {
  
  		$files = [];
  
  		$glob = glob($folder->getPath() . '*', GLOB_NOSORT);
  
  		if($glob !== FALSE) {
  
  			foreach($glob as $f) {
  				if(!is_dir($f)) {
  
  					if(!isset(self::$instances[$f])) {
  						self::$instances[$f] = new self(basename($f), $folder);
  					}
  
  					$files[] = self::$instances[$f];
  				}
  			}
  		}
  
  		return $files;
  	}
code_tokens: public static function getFilesystemFilesInFolder ( FilesystemFolder $ folder ) { $ files = [ ] ; $ glob = glob ( $ folder -> getPath ( ) . '*' , GLOB_NOSORT ) ; if ( $ glob !== FALSE ) { foreach ( $ glob as $ f ) { if ( ! is_dir ( $ f ) ) { if ( ! isset ( self :: $ instances [ $ f ] ) ) { self :: $ instances [ $ f ] = new self ( basename ( $ f ) , $ folder ) ; } $ files [ ] = self :: $ instances [ $ f ] ; } } } return $ files ; }
docstring: return all filesystem files instances within a certain folder
  
  @param FilesystemFolder $folder
  @return Array filesystem files
docstring_tokens: return all filesystem files instances within a certain folder