original_string: public function findFactory(PathInformationInterface $path, $mode)
      {
          $factoryList    = clone $this->factoryList;
          foreach ($factoryList as $factory) {
              /** @var $factory Factory */
              if ($factory->canHandle($path, $mode)) {
                  return $factory;
              }
          }
          throw new \RuntimeException('No factory found to handle the requested path');
      }
code: public function findFactory(PathInformationInterface $path, $mode)
      {
          $factoryList    = clone $this->factoryList;
          foreach ($factoryList as $factory) {
              /** @var $factory Factory */
              if ($factory->canHandle($path, $mode)) {
                  return $factory;
              }
          }
          throw new \RuntimeException('No factory found to handle the requested path');
      }
code_tokens: public function findFactory ( PathInformationInterface $ path , $ mode ) { $ factoryList = clone $ this -> factoryList ; foreach ( $ factoryList as $ factory ) { /** @var $factory Factory */ if ( $ factory -> canHandle ( $ path , $ mode ) ) { return $ factory ; } } throw new \ RuntimeException ( 'No factory found to handle the requested path' ) ; }
docstring: Returns the file stream factory to handle the requested path
  
  @param   PathInformationInterface     $path   The path information
  @param   string                       $mode   The mode used to open the path
  @return  Factory                              The file buffer factory to handle the path
  @throws  \RuntimeException                    If no factory is found to handle to the path
docstring_tokens: Returns the file stream factory to handle the requested path