original_string: public function link($routes, $url, $value = '', $attributes = array('class' => 'active'))
  	{
  		if(empty($value))
  		{
  			$value = $url;
  		}
  
  		$output = '<a href="'.$url.'"';
  
  		if($this->is($routes))
  		{
  			$output.= $this->putAttributes($attributes);
  		}
  
  		$output.= '>'.$value.'</a>';
  
  		return $output;
  	}
code: public function link($routes, $url, $value = '', $attributes = array('class' => 'active'))
  	{
  		if(empty($value))
  		{
  			$value = $url;
  		}
  
  		$output = '<a href="'.$url.'"';
  
  		if($this->is($routes))
  		{
  			$output.= $this->putAttributes($attributes);
  		}
  
  		$output.= '>'.$value.'</a>';
  
  		return $output;
  	}
code_tokens: public function link ( $ routes , $ url , $ value = '' , $ attributes = array ( 'class' => 'active' ) ) { if ( empty ( $ value ) ) { $ value = $ url ; } $ output = '<a href="' . $ url . '"' ; if ( $ this -> is ( $ routes ) ) { $ output .= $ this -> putAttributes ( $ attributes ) ; } $ output .= '>' . $ value . '</a>' ; return $ output ; }
docstring: Generate link with active state.
  
  @param array $routes
  @param string $url
  @param string $value
  @param array $attributes
  @return string
docstring_tokens: Generate link with active state .