original_string: public function download($url)
  	{
  		$getResult = $this->session->get($url);
  
  		if (!$getResult->success) {
  			$this->error = array();
  			$this->error['file'] = 'Download error (HTTP status: ' . $getResult->status_code . ')';
  			$this->error['http'] = $getResult->status_code;
  			return null;
  		}
  		return $getResult->body;
  	}
code: public function download($url)
  	{
  		$getResult = $this->session->get($url);
  
  		if (!$getResult->success) {
  			$this->error = array();
  			$this->error['file'] = 'Download error (HTTP status: ' . $getResult->status_code . ')';
  			$this->error['http'] = $getResult->status_code;
  			return null;
  		}
  		return $getResult->body;
  	}
code_tokens: public function download ( $ url ) { $ getResult = $ this -> session -> get ( $ url ) ; if ( ! $ getResult -> success ) { $ this -> error = array ( ) ; $ this -> error [ 'file' ] = 'Download error (HTTP status: ' . $ getResult -> status_code . ')' ; $ this -> error [ 'http' ] = $ getResult -> status_code ; return null ; } return $ getResult -> body ; }
docstring: Downloads data from the given URL.
  
  @param   string  $url  The URL to download from
  @return  mixed         The downloaded data (string), or null if error
docstring_tokens: Downloads data from the given URL .