original_string: public function withTypeNegotiation($strongNegotiation = false)
      {
  		$negotiation = array_intersect(Request\AcceptType::getContent(), Support\TypeSupport::getSupport());
  
  		$content = '';
  
  		if(count($negotiation) > 0) {
  			$content = current($negotiation);
  		}
  		else {
  			if($strongNegotiation) {
  				$this->failTypeNegotiation();
  			}
  			else {
  				$content =  Support\TypeSupport::getSupport();
  				$content = $content[0];
  			}
  		}
  
  		return $this->withType($content);
  	}
code: public function withTypeNegotiation($strongNegotiation = false)
      {
  		$negotiation = array_intersect(Request\AcceptType::getContent(), Support\TypeSupport::getSupport());
  
  		$content = '';
  
  		if(count($negotiation) > 0) {
  			$content = current($negotiation);
  		}
  		else {
  			if($strongNegotiation) {
  				$this->failTypeNegotiation();
  			}
  			else {
  				$content =  Support\TypeSupport::getSupport();
  				$content = $content[0];
  			}
  		}
  
  		return $this->withType($content);
  	}
code_tokens: public function withTypeNegotiation ( $ strongNegotiation = false ) { $ negotiation = array_intersect ( Request \ AcceptType :: getContent ( ) , Support \ TypeSupport :: getSupport ( ) ) ; $ content = '' ; if ( count ( $ negotiation ) > 0 ) { $ content = current ( $ negotiation ) ; } else { if ( $ strongNegotiation ) { $ this -> failTypeNegotiation ( ) ; } else { $ content = Support \ TypeSupport :: getSupport ( ) ; $ content = $ content [ 0 ] ; } } return $ this -> withType ( $ content ) ; }
docstring: Negotiate Mime types
  @param  boolean $strongNegotiation 	Enfore a strong negotiation
  @todo	 Implement weights
  @return [type]                     [description]
docstring_tokens: Negotiate Mime types