original_string: protected function matchLocalAndRemotePaths(array $coverage)
  	{
  		$coverage_with_local_paths = array();
  
  		foreach ( $coverage as $original_remote_path => $data ) {
  			$remote_path = $original_remote_path;
  			$separator = $this->findDirectorySeparator($remote_path);
  
  			while ( !($local_path = stream_resolve_include_path($remote_path)) &&
  				strpos($remote_path, $separator) !== false ) {
  				$remote_path = substr($remote_path, strpos($remote_path, $separator) + 1);
  			}
  
  			if ( $local_path && md5_file($local_path) == $data['md5'] ) {
  				$coverage_with_local_paths[$local_path] = $data['coverage'];
  			}
  		}
  
  		return $coverage_with_local_paths;
  	}
code: protected function matchLocalAndRemotePaths(array $coverage)
  	{
  		$coverage_with_local_paths = array();
  
  		foreach ( $coverage as $original_remote_path => $data ) {
  			$remote_path = $original_remote_path;
  			$separator = $this->findDirectorySeparator($remote_path);
  
  			while ( !($local_path = stream_resolve_include_path($remote_path)) &&
  				strpos($remote_path, $separator) !== false ) {
  				$remote_path = substr($remote_path, strpos($remote_path, $separator) + 1);
  			}
  
  			if ( $local_path && md5_file($local_path) == $data['md5'] ) {
  				$coverage_with_local_paths[$local_path] = $data['coverage'];
  			}
  		}
  
  		return $coverage_with_local_paths;
  	}
code_tokens: protected function matchLocalAndRemotePaths ( array $ coverage ) { $ coverage_with_local_paths = array ( ) ; foreach ( $ coverage as $ original_remote_path => $ data ) { $ remote_path = $ original_remote_path ; $ separator = $ this -> findDirectorySeparator ( $ remote_path ) ; while ( ! ( $ local_path = stream_resolve_include_path ( $ remote_path ) ) && strpos ( $ remote_path , $ separator ) !== false ) { $ remote_path = substr ( $ remote_path , strpos ( $ remote_path , $ separator ) + 1 ) ; } if ( $ local_path && md5_file ( $ local_path ) == $ data [ 'md5' ] ) { $ coverage_with_local_paths [ $ local_path ] = $ data [ 'coverage' ] ; } } return $ coverage_with_local_paths ; }
docstring: Returns only files from remote server, that are matching files on test machine.
  
  @param array $coverage Remote coverage information.
  
  @return array
  @author Mattis Stordalen Flister <mattis@xait.no>
docstring_tokens: Returns only files from remote server that are matching files on test machine .