original_string: protected function outputContentType($format)
      {
          if (!isset($format)) {
              $contentType = $this->getResponse()->getHeaderLine('Content-Type');
              
              if (empty($contentType)) {
                  $format = $this->defaultFormat ?: 'text/html';
              }
          }
          
          if (empty($contentType)) {
              $contentType = $this->getContentType($format);
              $this->setResponseHeader('Content-Type', $contentType);
          }
          
          return $contentType;
      }
code: protected function outputContentType($format)
      {
          if (!isset($format)) {
              $contentType = $this->getResponse()->getHeaderLine('Content-Type');
              
              if (empty($contentType)) {
                  $format = $this->defaultFormat ?: 'text/html';
              }
          }
          
          if (empty($contentType)) {
              $contentType = $this->getContentType($format);
              $this->setResponseHeader('Content-Type', $contentType);
          }
          
          return $contentType;
      }
code_tokens: protected function outputContentType ( $ format ) { if ( ! isset ( $ format ) ) { $ contentType = $ this -> getResponse ( ) -> getHeaderLine ( 'Content-Type' ) ; if ( empty ( $ contentType ) ) { $ format = $ this -> defaultFormat ? : 'text/html' ; } } if ( empty ( $ contentType ) ) { $ contentType = $ this -> getContentType ( $ format ) ; $ this -> setResponseHeader ( 'Content-Type' , $ contentType ) ; } return $ contentType ; }
docstring: Set the content type for the output
  
  @param string $format
  @return string
docstring_tokens: Set the content type for the output