original_string: protected function createCrawlerFromContent($uri, $content, $type)
      {
          if (!class_exists('Symfony\Component\DomCrawler\Crawler')) {
              return;
          }
  
          $crawler = new Crawler(null, $uri);
          $crawler->addContent($content, $type);
  
          return $crawler;
      }
code: protected function createCrawlerFromContent($uri, $content, $type)
      {
          if (!class_exists('Symfony\Component\DomCrawler\Crawler')) {
              return;
          }
  
          $crawler = new Crawler(null, $uri);
          $crawler->addContent($content, $type);
  
          return $crawler;
      }
code_tokens: protected function createCrawlerFromContent ( $ uri , $ content , $ type ) { if ( ! class_exists ( 'Symfony\Component\DomCrawler\Crawler' ) ) { return ; } $ crawler = new Crawler ( null , $ uri ) ; $ crawler -> addContent ( $ content , $ type ) ; return $ crawler ; }
docstring: Creates a crawler.
  
  This method returns null if the DomCrawler component is not available.
  
  @param string $uri     A URI
  @param string $content Content for the crawler to use
  @param string $type    Content type
  
  @return Crawler|null
docstring_tokens: Creates a crawler .