lib/Github/Api/Gist/Comments.php
public function configure($bodyType = null)
    {
        if (!in_array($bodyType, ['text', 'html', 'full'])) {
            $bodyType = 'raw';
        }

        $this->acceptHeaderValue = sprintf('application/vnd.github.%s.%s+json', $this->client->getApiVersion(), $bodyType);

        return $this;
    }
public function configure($bodyType = null)
    {
        if (!in_array($bodyType, ['text', 'html', 'full'])) {
            $bodyType = 'raw';
        }

        $this->acceptHeaderValue = sprintf('application/vnd.github.%s.%s+json', $this->client->getApiVersion(), $bodyType);

        return $this;
    }
public function configure ( $ bodyType = null ) { if ( ! in_array ( $ bodyType , [ 'text' , 'html' , 'full' ] ) ) { $ bodyType = 'raw' ; } $ this -> acceptHeaderValue = sprintf ( 'application/vnd.github.%s.%s+json' , $ this -> client -> getApiVersion ( ) , $ bodyType ) ; return $ this ; }
Configure the body type.

@link https://developer.github.com/v3/gists/comments/#custom-media-types

@param string|null $bodyType

@return self
Configure the body type .