original_string: public function getImageHeight($type, $size)
  	{
  		if (empty($this->$type))
  		{
  			return null;
  		}
  		$method = $this->getImageConfig($type, $size, 'method');
  
  		// Height varies for images that are 'landscape', 'auto', 'fit', 'crop'
  		if (in_array($method, array('landscape', 'auto', 'fit', 'crop')))
  		{
  			list($width, $height) = $this->getImageDimensions($type, $size);
  			return $height;
  		}
  		return $this->getImageConfig($type, $size, 'height');
  	}
code: public function getImageHeight($type, $size)
  	{
  		if (empty($this->$type))
  		{
  			return null;
  		}
  		$method = $this->getImageConfig($type, $size, 'method');
  
  		// Height varies for images that are 'landscape', 'auto', 'fit', 'crop'
  		if (in_array($method, array('landscape', 'auto', 'fit', 'crop')))
  		{
  			list($width, $height) = $this->getImageDimensions($type, $size);
  			return $height;
  		}
  		return $this->getImageConfig($type, $size, 'height');
  	}
code_tokens: public function getImageHeight ( $ type , $ size ) { if ( empty ( $ this -> $ type ) ) { return null ; } $ method = $ this -> getImageConfig ( $ type , $ size , 'method' ) ; // Height varies for images that are 'landscape', 'auto', 'fit', 'crop' if ( in_array ( $ method , array ( 'landscape' , 'auto' , 'fit' , 'crop' ) ) ) { list ( $ width , $ height ) = $ this -> getImageDimensions ( $ type , $ size ) ; return $ height ; } return $ this -> getImageConfig ( $ type , $ size , 'height' ) ; }
docstring: Returns the value for use in the height attribute of an img tag for the given image type and size
  
  @param $type
  @param $size
  @return null|string
docstring_tokens: Returns the value for use in the height attribute of an img tag for the given image type and size