original_string: protected function handleExtension(InputInterface $input, OutputInterface $output)
  	{
  		$source = $input->getArgument('extension');
  
  		if (strpos($source, '://'))
  		{
  			$tmpPath = $this->handleDownload($output, $source);
  		}
  		elseif (is_dir($source))
  		{
  			$tmpPath = $this->handleDirectory($output, $source);
  		}
  		else
  		{
  			$tmpPath = $this->handleArchive($output, $source);
  		}
  
  		return $tmpPath;
  	}
code: protected function handleExtension(InputInterface $input, OutputInterface $output)
  	{
  		$source = $input->getArgument('extension');
  
  		if (strpos($source, '://'))
  		{
  			$tmpPath = $this->handleDownload($output, $source);
  		}
  		elseif (is_dir($source))
  		{
  			$tmpPath = $this->handleDirectory($output, $source);
  		}
  		else
  		{
  			$tmpPath = $this->handleArchive($output, $source);
  		}
  
  		return $tmpPath;
  	}
code_tokens: protected function handleExtension ( InputInterface $ input , OutputInterface $ output ) { $ source = $ input -> getArgument ( 'extension' ) ; if ( strpos ( $ source , '://' ) ) { $ tmpPath = $ this -> handleDownload ( $ output , $ source ) ; } elseif ( is_dir ( $ source ) ) { $ tmpPath = $ this -> handleDirectory ( $ output , $ source ) ; } else { $ tmpPath = $ this -> handleArchive ( $ output , $ source ) ; } return $ tmpPath ; }
docstring: Handle the specified extension
  An extension can be provided as a download, a directory, or an archive.
  This method prepares the installation by providing the extension in a
  temporary directory ready for install.
  
  @param   InputInterface  $input  An InputInterface instance
  @param   OutputInterface $output An OutputInterface instance
  
  @return  string  The location of the prepared extension
docstring_tokens: Handle the specified extension An extension can be provided as a download a directory or an archive . This method prepares the installation by providing the extension in a temporary directory ready for install .