original_string: public function format($default = 'html')
      {
          foreach ($this->getAcceptableContentTypes() as $type) {
              if ($format = $this->getFormat($type)) {
                  return $format;
              }
          }
  
          return $default;
      }
code: public function format($default = 'html')
      {
          foreach ($this->getAcceptableContentTypes() as $type) {
              if ($format = $this->getFormat($type)) {
                  return $format;
              }
          }
  
          return $default;
      }
code_tokens: public function format ( $ default = 'html' ) { foreach ( $ this -> getAcceptableContentTypes ( ) as $ type ) { if ( $ format = $ this -> getFormat ( $ type ) ) { return $ format ; } } return $ default ; }
docstring: Get the data format expected in the response.
  
  @param  string  $default
  @return string
docstring_tokens: Get the data format expected in the response .