original_string: protected static function selectType($views, $type)
  	{
  		if(!is_array($views))
  		{
  			return $views;
  		}
  
  		if($type === FALSE)
  		{
  			return $views;
  		}
  
  		if(!$type)
  		{
  			return current($views);
  		}
  
  		if(!isset($views[$type]))
  		{
  			return null;
  		}
  
  		return $views[$type];
  	}
code: protected static function selectType($views, $type)
  	{
  		if(!is_array($views))
  		{
  			return $views;
  		}
  
  		if($type === FALSE)
  		{
  			return $views;
  		}
  
  		if(!$type)
  		{
  			return current($views);
  		}
  
  		if(!isset($views[$type]))
  		{
  			return null;
  		}
  
  		return $views[$type];
  	}
code_tokens: protected static function selectType ( $ views , $ type ) { if ( ! is_array ( $ views ) ) { return $ views ; } if ( $ type === FALSE ) { return $ views ; } if ( ! $ type ) { return current ( $ views ) ; } if ( ! isset ( $ views [ $ type ] ) ) { return null ; } return $ views [ $ type ] ; }
docstring: Selects view type when provided and available
  
  @param array|object|bool $views List of views by type if available, single view class, or FALSE if no view found.
  @param string $type Type of view to select.
  
  
  @return object View object ready to be rendered..
docstring_tokens: Selects view type when provided and available