original_string: protected function determineMediaType($acceptHeader)
      {
          if (!empty($acceptHeader)) {
              $negotiator = new Negotiator();
              $mediaType = $negotiator->getBest($acceptHeader, $this->knownMediaTypes);
  
              if ($mediaType) {
                  return $mediaType->getValue();
              }
          }
  
          return $this->getDefaultMediaType();
      }
code: protected function determineMediaType($acceptHeader)
      {
          if (!empty($acceptHeader)) {
              $negotiator = new Negotiator();
              $mediaType = $negotiator->getBest($acceptHeader, $this->knownMediaTypes);
  
              if ($mediaType) {
                  return $mediaType->getValue();
              }
          }
  
          return $this->getDefaultMediaType();
      }
code_tokens: protected function determineMediaType ( $ acceptHeader ) { if ( ! empty ( $ acceptHeader ) ) { $ negotiator = new Negotiator ( ) ; $ mediaType = $ negotiator -> getBest ( $ acceptHeader , $ this -> knownMediaTypes ) ; if ( $ mediaType ) { return $ mediaType -> getValue ( ) ; } } return $ this -> getDefaultMediaType ( ) ; }
docstring: Read the accept header and determine which media type we know about
  is wanted.
  
  @param  string $acceptHeader Accept header from request
  @return string
docstring_tokens: Read the accept header and determine which media type we know about is wanted .